1 | <?php declare(strict_types=1); |
||
17 | class Feed extends Node implements FeedInterface, \JsonSerializable |
||
18 | { |
||
19 | /** |
||
20 | * @var \ArrayIterator |
||
21 | */ |
||
22 | protected $items; |
||
23 | |||
24 | /** |
||
25 | * @var string $url |
||
26 | */ |
||
27 | protected $url; |
||
28 | |||
29 | /** |
||
30 | * @var string $language |
||
31 | */ |
||
32 | protected $language; |
||
33 | |||
34 | /** |
||
35 | * @var string $image |
||
36 | 41 | */ |
|
37 | protected $image; |
||
38 | 41 | ||
39 | 41 | protected $ns; |
|
40 | |||
41 | 41 | public function __construct() |
|
48 | |||
49 | 3 | /** |
|
50 | * @return string $url |
||
51 | */ |
||
52 | public function getUrl() : ? string |
||
56 | 5 | ||
57 | /** |
||
58 | 5 | * @param string $url |
|
59 | * @return FeedInterface |
||
60 | 5 | */ |
|
61 | public function setUrl(string $url = null) : FeedInterface |
||
67 | |||
68 | 4 | /** |
|
69 | * @return string $language |
||
70 | */ |
||
71 | public function getLanguage(): ? string |
||
75 | 2 | ||
76 | /** |
||
77 | 2 | * @param string $language |
|
78 | * @return FeedInterface |
||
79 | 2 | */ |
|
80 | public function setLanguage(string $language = null): FeedInterface |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getImage() : ? string |
||
94 | |||
95 | /** |
||
96 | * @param string $description |
||
|
|||
97 | * @return NodeInterface |
||
98 | */ |
||
99 | public function setImage(string $image = null) : FeedInterface |
||
105 | 17 | ||
106 | |||
107 | |||
108 | |||
109 | /** |
||
110 | * (PHP 5 >= 5.0.0)<br/> |
||
111 | * Return the current element |
||
112 | * @link http://php.net/manual/en/iterator.current.php |
||
113 | 2 | * @return mixed Can return any type. |
|
114 | */ |
||
115 | 2 | public function current() |
|
119 | |||
120 | /** |
||
121 | * (PHP 5 >= 5.0.0)<br/> |
||
122 | * Move forward to next element |
||
123 | * @link http://php.net/manual/en/iterator.next.php |
||
124 | * @return void Any returned value is ignored. |
||
125 | 21 | */ |
|
126 | public function next() |
||
130 | |||
131 | /** |
||
132 | * (PHP 5 >= 5.0.0)<br/> |
||
133 | * Return the key of the current element |
||
134 | * @link http://php.net/manual/en/iterator.key.php |
||
135 | * @return mixed scalar on success, or null on failure. |
||
136 | 19 | */ |
|
137 | public function key() |
||
141 | |||
142 | /** |
||
143 | * (PHP 5 >= 5.0.0)<br/> |
||
144 | * Checks if current position is valid |
||
145 | 28 | * @link http://php.net/manual/en/iterator.valid.php |
|
146 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
147 | 28 | * Returns true on success or false on failure. |
|
148 | */ |
||
149 | 28 | public function valid() |
|
153 | |||
154 | 2 | /** |
|
155 | * (PHP 5 >= 5.0.0)<br/> |
||
156 | 2 | * Rewind the Iterator to the first element |
|
157 | * @link http://php.net/manual/en/iterator.rewind.php |
||
158 | * @return void Any returned value is ignored. |
||
159 | 6 | */ |
|
160 | public function rewind() |
||
164 | |||
165 | /** |
||
166 | * @param ItemInterface $item |
||
167 | 10 | * @return $this |
|
168 | */ |
||
169 | 10 | public function add(ItemInterface $item) : FeedInterface |
|
175 | 1 | ||
176 | public function addNS(string $ns, string $dtd) : FeedInterface |
||
182 | |||
183 | 3 | public function getNS() : \ArrayIterator |
|
187 | 3 | ||
188 | 3 | /** |
|
189 | * @return ItemInterface |
||
190 | */ |
||
191 | 3 | public function newItem() : ItemInterface |
|
195 | |||
196 | /** |
||
197 | * @return array |
||
198 | */ |
||
199 | public function jsonSerialize() : array |
||
203 | |||
204 | /** |
||
205 | * @return array |
||
206 | */ |
||
207 | public function toArray() : array |
||
220 | |||
221 | /** |
||
222 | * @return int |
||
223 | */ |
||
224 | public function count() : int |
||
228 | } |
||
229 |
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.