1 | <?php |
||
17 | class CustomerAddress implements CustomerAddressInterface |
||
18 | { |
||
19 | /** @var string */ |
||
20 | protected $zipCode; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $addressLine; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $buildingNumber; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $complement; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $neighborhood; |
||
33 | |||
34 | /** @var string */ |
||
35 | protected $city; |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $state; |
||
39 | |||
40 | /** @var string */ |
||
41 | protected $country; |
||
42 | |||
43 | /** |
||
44 | * @param string $zipCode |
||
45 | * @return CustomerAddress |
||
46 | */ |
||
47 | public function setZipCode(string $zipCode): CustomerAddress |
||
52 | |||
53 | /** |
||
54 | * @param string $zipCode |
||
|
|||
55 | * @return CustomerAddress |
||
56 | */ |
||
57 | public function setAddressLine(string $addressLine): CustomerAddress |
||
62 | |||
63 | /** |
||
64 | * @param string $zipCode |
||
65 | * @return CustomerAddress |
||
66 | */ |
||
67 | public function setBuildingNumber(string $buildingNumber): CustomerAddress |
||
72 | |||
73 | /** |
||
74 | * @param string $zipCode |
||
75 | * @return CustomerAddress |
||
76 | */ |
||
77 | public function setComplement(string $complement): CustomerAddress |
||
82 | |||
83 | /** |
||
84 | * @param string $zipCode |
||
85 | * @return CustomerAddress |
||
86 | */ |
||
87 | public function setNeighborhood(string $neighborhood): CustomerAddress |
||
92 | |||
93 | /** |
||
94 | * @param string $zipCode |
||
95 | * @return CustomerAddress |
||
96 | */ |
||
97 | public function setCity(string $city): CustomerAddress |
||
102 | |||
103 | /** |
||
104 | * @param string $zipCode |
||
105 | * @return CustomerAddress |
||
106 | */ |
||
107 | public function setState(string $state): CustomerAddress |
||
112 | |||
113 | /** |
||
114 | * @param string $zipCode |
||
115 | * @return CustomerAddress |
||
116 | */ |
||
117 | public function setCountry(string $country): CustomerAddress |
||
122 | |||
123 | /** |
||
124 | * @return string |
||
125 | */ |
||
126 | public function getZipCode(): string |
||
130 | |||
131 | /** |
||
132 | * @return string |
||
133 | */ |
||
134 | public function getAddressLine(): string |
||
138 | |||
139 | /** |
||
140 | * @return string |
||
141 | */ |
||
142 | public function getBuildingNumber(): string |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getComplement(): string |
||
154 | |||
155 | /** |
||
156 | * @return string |
||
157 | */ |
||
158 | public function getNeighborhood(): string |
||
162 | |||
163 | /** |
||
164 | * @return string |
||
165 | */ |
||
166 | public function getCity(): string |
||
170 | |||
171 | /** |
||
172 | * @return string |
||
173 | */ |
||
174 | public function getState(): string |
||
178 | |||
179 | /** |
||
180 | * @return string |
||
181 | */ |
||
182 | public function getCountry(): string |
||
186 | |||
187 | /** |
||
188 | * @return array |
||
189 | */ |
||
190 | public function toArray(): array |
||
203 | } |
||
204 |
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.