1 | <?php |
||
11 | class DutyHelper |
||
12 | { |
||
13 | public $list; |
||
14 | public $swapDates; |
||
15 | public $lastWorkedUser = null; |
||
16 | public $duty; |
||
17 | |||
18 | public function __construct(Duty $duty) |
||
23 | |||
24 | public function generateList() |
||
32 | |||
33 | public function iterateList() |
||
43 | |||
44 | public function sortList() |
||
54 | |||
55 | /** |
||
56 | * Check duty cycle. Then determine if time to record next entry. |
||
57 | * |
||
58 | * @param string $today |
||
59 | */ |
||
60 | private function readyToRecordNextEntry($today) |
||
77 | } |
||
78 |