DoorOverrideCheck.php 474 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php


namespace Source\UseCases\Door\Access\Authorizers\DoorOverrideCheck;

use Carbon\Carbon;

interface DoorOverrideCheck
{
    public const OPEN = 0;
    public const CLOSED = 1;
    public const NO_ACTION = 2;

    /**
     * Returns one of the constants defined on DoorOverrideCheck
     *
     * @param string         $doorId
     * @param \Carbon\Carbon $date
     * @return mixed
     */
    public function checkForOverrides(string $doorId, Carbon $date): int;
}