1 | <?php |
||
4 | class OpeningTimes implements OpeningTimesInterface |
||
5 | { |
||
6 | protected $days = array(); |
||
7 | |||
8 | |||
9 | |||
10 | /** |
||
11 | * @inheritDoc |
||
12 | */ |
||
13 | 2 | public function getIterator() |
|
17 | |||
18 | |||
19 | /** |
||
20 | * @inheritDoc |
||
21 | */ |
||
22 | 2 | public function jsonSerialize() |
|
26 | |||
27 | |||
28 | /** |
||
29 | * @param string $day Day name, e.g. "monday", "tuesday" |
||
30 | * @return string|null Opening times as text |
||
31 | */ |
||
32 | 30 | public function getDay( string $day ) : ?string |
|
36 | |||
37 | |||
38 | /** |
||
39 | * @param string $day Day name, e.g. "monday", "tuesday" |
||
40 | * @param string $times|null Opening times as text |
||
|
|||
41 | */ |
||
42 | 32 | public function setDay( string $day, string $times = null ) : self |
|
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | /** |
||
53 | * @inheritDoc |
||
54 | * @return string|null |
||
55 | */ |
||
56 | 4 | public function getMonday() : ?string |
|
60 | |||
61 | |||
62 | /** |
||
63 | * @param string|null $times Opening times as text |
||
64 | */ |
||
65 | 8 | public function setMonday( string $times = null ) |
|
69 | |||
70 | |||
71 | |||
72 | |||
73 | |||
74 | /** |
||
75 | * @inheritDoc |
||
76 | * @return string|null |
||
77 | */ |
||
78 | 4 | public function getTuesday() : ?string |
|
82 | |||
83 | |||
84 | /** |
||
85 | * @param string|null $times Opening times as text |
||
86 | */ |
||
87 | 4 | public function setTuesday( string $times = null ) |
|
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||
96 | /** |
||
97 | * @inheritDoc |
||
98 | * @return string|null |
||
99 | */ |
||
100 | 4 | public function getWednesday() : ?string |
|
104 | |||
105 | |||
106 | /** |
||
107 | * @param string|null $times Opening times as text |
||
108 | */ |
||
109 | 4 | public function setWednesday( string $times = null ) |
|
113 | |||
114 | |||
115 | |||
116 | |||
117 | |||
118 | /** |
||
119 | * @inheritDoc |
||
120 | * @return string|null |
||
121 | */ |
||
122 | 4 | public function getThursday() : ?string |
|
126 | |||
127 | |||
128 | /** |
||
129 | * @param string|null $times Opening times as text |
||
130 | */ |
||
131 | 4 | public function setThursday( string $times = null ) |
|
135 | |||
136 | |||
137 | |||
138 | |||
139 | |||
140 | |||
141 | |||
142 | |||
143 | /** |
||
144 | * @inheritDoc |
||
145 | * @return string|null |
||
146 | */ |
||
147 | 4 | public function getFriday() : ?string |
|
151 | |||
152 | |||
153 | |||
154 | /** |
||
155 | * @param string|null $times Opening times as text |
||
156 | */ |
||
157 | 4 | public function setFriday( string $times = null ) |
|
161 | |||
162 | |||
163 | |||
164 | |||
165 | |||
166 | |||
167 | /** |
||
168 | * @inheritDoc |
||
169 | * @return string|null |
||
170 | */ |
||
171 | 4 | public function getSaturday() : ?string |
|
175 | |||
176 | |||
177 | |||
178 | |||
179 | /** |
||
180 | * @param string|null $times Opening times as text |
||
181 | */ |
||
182 | 4 | public function setSaturday( string $times = null ) |
|
186 | |||
187 | |||
188 | |||
189 | |||
190 | /** |
||
191 | * @inheritDoc |
||
192 | * @return string|null |
||
193 | */ |
||
194 | 4 | public function getSunday() : ?string |
|
198 | |||
199 | |||
200 | |||
201 | |||
202 | |||
203 | /** |
||
204 | * @param string|null $times Opening times as text |
||
205 | */ |
||
206 | 4 | public function setSunday( string $times = null ) |
|
210 | |||
211 | |||
212 | } |
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.