1 | <?php |
||
9 | class ScheduledShow |
||
10 | { |
||
11 | |||
12 | protected $show; |
||
13 | protected $dj; |
||
14 | protected $startingHour; |
||
15 | protected $endingHour; |
||
16 | protected $id; |
||
17 | protected $dayOfWeek; |
||
18 | |||
19 | public static function fromShowAndDJ($show, $dj) |
||
28 | |||
29 | public function dj() |
||
33 | |||
34 | public function djId() |
||
38 | |||
39 | public function show() |
||
43 | |||
44 | public function showId() |
||
48 | |||
49 | public function djPicture() |
||
53 | |||
54 | public function showPicture() |
||
58 | |||
59 | public function sliderPicture() |
||
63 | |||
64 | public function sliderStyle() |
||
68 | |||
69 | public function startsAt($startingHour) |
||
75 | |||
76 | public function start() |
||
80 | |||
81 | public function end() |
||
85 | |||
86 | public function extendShowByHour() |
||
90 | |||
91 | public function timespan() |
||
98 | |||
99 | private function hourAdjusted($hour) |
||
106 | |||
107 | public function airsDayOfWeek($airsDayOfWeek) |
||
111 | |||
112 | public function getAirDate() |
||
116 | |||
117 | public function getRelativeAirDate() |
||
133 | |||
134 | |||
135 | public function airDayOfWeek() |
||
139 | |||
140 | public function showDescription() |
||
144 | |||
145 | public function setId($id) |
||
149 | |||
150 | public function id() |
||
154 | |||
155 | public function nowPlaying() |
||
171 | } |
||
172 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.