DoorOpenModeCheck.php 500 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php


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

use Carbon\Carbon;

interface DoorOpenModeCheck
{
    /**
     * Checks for the door to be in open mode at a specified date.
     * Returns false if it is not in open mode
     * Returns true if the door is in open mode and should be allowed
     *
     * @param string         $doorId
     * @param \Carbon\Carbon $date
     * @return bool
     */
    public function checkOpenMode(string $doorId, Carbon $date): bool;
}