1 | <?php |
||
10 | class TimetableTimeslotStrategy extends BaseTimetableStrategy implements TimetableStrategyInterface |
||
11 | { |
||
12 | private $interval = 30; |
||
13 | |||
14 | public function __construct(Timetable $timetable) |
||
18 | |||
19 | protected function initTimetable($starting, $days) |
||
28 | |||
29 | /** |
||
30 | * Build timetable. |
||
31 | * |
||
32 | * @param \Illuminate\Database\Eloquent\Collection $vacancies |
||
33 | * @param string $starting |
||
34 | * @param int $days |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | public function buildTimetable($vacancies, $starting = 'today', $days = 1) |
||
48 | |||
49 | protected function updateTimeslots(Vacancy $vacancy, $step = 30) |
||
67 | } |
||
68 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.