1 | <?php |
||
4 | class OpeningTimes implements OpeningTimesInterface |
||
5 | { |
||
6 | protected $days = array(); |
||
7 | |||
8 | public $description = null; |
||
9 | |||
10 | |||
11 | 2 | public function getDescription() : ?string |
|
15 | |||
16 | 2 | public function setDescription( string $text = null) : self |
|
21 | |||
22 | |||
23 | /** |
||
24 | * @inheritDoc |
||
25 | */ |
||
26 | 2 | public function getIterator() |
|
30 | |||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | 2 | public function jsonSerialize() |
|
39 | |||
40 | |||
41 | /** |
||
42 | * @param string $day Day name, e.g. "monday", "tuesday" |
||
43 | * @return string|null Opening times as text |
||
44 | */ |
||
45 | 30 | public function getDay( string $day ) : ?string |
|
49 | |||
50 | |||
51 | /** |
||
52 | * @param string $day Day name, e.g. "monday", "tuesday" |
||
53 | * @param string $times|null Opening times as text |
||
|
|||
54 | */ |
||
55 | 32 | public function setDay( string $day, string $times = null ) : self |
|
60 | |||
61 | |||
62 | |||
63 | |||
64 | |||
65 | /** |
||
66 | * @inheritDoc |
||
67 | * @return string|null |
||
68 | */ |
||
69 | 4 | public function getMonday() : ?string |
|
73 | |||
74 | |||
75 | /** |
||
76 | * @param string|null $times Opening times as text |
||
77 | */ |
||
78 | 8 | public function setMonday( string $times = null ) |
|
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
87 | /** |
||
88 | * @inheritDoc |
||
89 | * @return string|null |
||
90 | */ |
||
91 | 4 | public function getTuesday() : ?string |
|
95 | |||
96 | |||
97 | /** |
||
98 | * @param string|null $times Opening times as text |
||
99 | */ |
||
100 | 4 | public function setTuesday( string $times = null ) |
|
104 | |||
105 | |||
106 | |||
107 | |||
108 | |||
109 | /** |
||
110 | * @inheritDoc |
||
111 | * @return string|null |
||
112 | */ |
||
113 | 4 | public function getWednesday() : ?string |
|
117 | |||
118 | |||
119 | /** |
||
120 | * @param string|null $times Opening times as text |
||
121 | */ |
||
122 | 4 | public function setWednesday( string $times = null ) |
|
126 | |||
127 | |||
128 | |||
129 | |||
130 | |||
131 | /** |
||
132 | * @inheritDoc |
||
133 | * @return string|null |
||
134 | */ |
||
135 | 4 | public function getThursday() : ?string |
|
139 | |||
140 | |||
141 | /** |
||
142 | * @param string|null $times Opening times as text |
||
143 | */ |
||
144 | 4 | public function setThursday( string $times = null ) |
|
148 | |||
149 | |||
150 | |||
151 | |||
152 | |||
153 | |||
154 | |||
155 | |||
156 | /** |
||
157 | * @inheritDoc |
||
158 | * @return string|null |
||
159 | */ |
||
160 | 4 | public function getFriday() : ?string |
|
164 | |||
165 | |||
166 | |||
167 | /** |
||
168 | * @param string|null $times Opening times as text |
||
169 | */ |
||
170 | 4 | public function setFriday( string $times = null ) |
|
174 | |||
175 | |||
176 | |||
177 | |||
178 | |||
179 | |||
180 | /** |
||
181 | * @inheritDoc |
||
182 | * @return string|null |
||
183 | */ |
||
184 | 4 | public function getSaturday() : ?string |
|
188 | |||
189 | |||
190 | |||
191 | |||
192 | /** |
||
193 | * @param string|null $times Opening times as text |
||
194 | */ |
||
195 | 4 | public function setSaturday( string $times = null ) |
|
199 | |||
200 | |||
201 | |||
202 | |||
203 | /** |
||
204 | * @inheritDoc |
||
205 | * @return string|null |
||
206 | */ |
||
207 | 4 | public function getSunday() : ?string |
|
211 | |||
212 | |||
213 | |||
214 | |||
215 | |||
216 | /** |
||
217 | * @param string|null $times Opening times as text |
||
218 | */ |
||
219 | 4 | public function setSunday( string $times = null ) |
|
223 | |||
224 | |||
225 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.