DoorScheduleRepository.php 633 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
<?php


namespace Source\Gateways\DoorSchedule;

Jacob Priddy's avatar
Jacob Priddy committed
6
7
8
use Carbon\Carbon;
use Source\Entities\Schedule;

Jacob Priddy's avatar
Jacob Priddy committed
9
10
11
12
13
14
15
interface DoorScheduleRepository
{
    /**
     * @param string $doorId
     * @return \Source\Entities\Schedule[]
     */
    public function getActiveSchedulesForDoor(string $doorId): array;
Jacob Priddy's avatar
Jacob Priddy committed
16
17
18
19
20
21
22
23

    /**
     * @param string         $doorId
     * @param \Carbon\Carbon $begin
     * @param \Carbon\Carbon $end
     * @param int            $type
     * @return \Source\Entities\Schedule[]
     */
24
    public function getSchedulesForDoorBetween(string $doorId, Carbon $begin, Carbon $end, int $type = Schedule::TYPE_OPEN_MODE): array;
Jacob Priddy's avatar
Jacob Priddy committed
25
}