| 1 | <?php |
||
| 8 | class TimetableDateslotStrategy extends BaseTimetableStrategy implements TimetableStrategyInterface |
||
| 9 | { |
||
| 10 | private $interval = 30; |
||
| 11 | |||
| 12 | public function __construct(Timetable $timetable) |
||
| 16 | |||
| 17 | protected function initTimetable($starting, $days) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Build timetable. |
||
| 28 | * |
||
| 29 | * @param \Illuminate\Database\Eloquent\Collection $vacancies |
||
| 30 | * @param string $starting |
||
| 31 | * @param int $days |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function buildTimetable($vacancies, $starting = 'today', $days = 1) |
||
| 45 | |||
| 46 | protected function updateTimeslots(Vacancy $vacancy) |
||
| 57 | } |
||
| 58 |