<?php

namespace App\Modules\HR\Attendance\Contracts;

use Carbon\CarbonImmutable;

interface AttendanceExceptionDetectionRule
{
    /**
     * @return int Number of newly persisted exceptions
     */
    public function run(int $tenantId, CarbonImmutable $from, CarbonImmutable $to): int;
}
