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