1 | <?php |
||
11 | class Company |
||
12 | { |
||
13 | /** |
||
14 | * @var ParameterBag |
||
15 | */ |
||
16 | protected $parameters; |
||
17 | |||
18 | /** |
||
19 | * Create a new item with the specified parameters. |
||
20 | * |
||
21 | * @param array|null $parameters An array of parameters to set on the new object |
||
22 | */ |
||
23 | public function __construct($parameters = null) |
||
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | */ |
||
31 | public function getParameters() |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getName() |
||
43 | |||
44 | /** |
||
45 | * @param string $group |
||
|
|||
46 | * |
||
47 | * @return Company |
||
48 | */ |
||
49 | public function setName($name) |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getLegalForm() |
||
63 | |||
64 | /** |
||
65 | * @param string $legalForm |
||
66 | * |
||
67 | * @return Company |
||
68 | */ |
||
69 | public function setLegalForm($legalForm) |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getRegisterNumber() |
||
83 | |||
84 | /** |
||
85 | * @param string $registerNumber |
||
86 | * |
||
87 | * @return Company |
||
88 | */ |
||
89 | public function setRegisterNumber($registerNumber) |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getHolderName() |
||
103 | |||
104 | /** |
||
105 | * @param string $holderName |
||
106 | * |
||
107 | * @return Company |
||
108 | */ |
||
109 | public function setHolderName($holderName) |
||
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | public function getTaxNumber() |
||
123 | |||
124 | /** |
||
125 | * @param string $taxNumber |
||
126 | * |
||
127 | * @return Company |
||
128 | */ |
||
129 | public function setTaxNumber($taxNumber) |
||
135 | |||
136 | /** |
||
137 | * Initialize this item with the specified parameters. |
||
138 | * |
||
139 | * @param array|null $parameters An array of parameters to set on this object |
||
140 | * |
||
141 | * @return Customer |
||
142 | */ |
||
143 | public function initialize($parameters = null) |
||
153 | |||
154 | /** |
||
155 | * @param string $key |
||
156 | * |
||
157 | * @return mixed |
||
158 | */ |
||
159 | protected function getParameter($key) |
||
163 | |||
164 | /** |
||
165 | * @param string $key |
||
166 | * @param mixed $value |
||
167 | * |
||
168 | * @return Customer |
||
169 | */ |
||
170 | protected function setParameter($key, $value) |
||
176 | } |
||
177 |
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.