1 | <?php |
||
25 | class RewriteUrlEvent extends ActionEvent |
||
26 | { |
||
27 | /** @var int|null */ |
||
28 | protected $id; |
||
29 | |||
30 | /** @var string */ |
||
31 | protected $url; |
||
32 | |||
33 | /** @var string */ |
||
34 | protected $view; |
||
35 | |||
36 | /** @var string */ |
||
37 | protected $viewLocale; |
||
38 | |||
39 | /** @var int|null */ |
||
40 | protected $redirected; |
||
41 | |||
42 | /** @var RewritingUrl */ |
||
43 | private $rewritingUrl; |
||
44 | |||
45 | /** @var RewritingRedirectType */ |
||
46 | private $redirectType; |
||
47 | |||
48 | /** |
||
49 | * @param RewritingUrl $rewritingUrl |
||
50 | * @param RewritingRedirectType $redirectType |
||
51 | */ |
||
52 | public function __construct(RewritingUrl $rewritingUrl, RewritingRedirectType $redirectType = null) |
||
62 | |||
63 | /** |
||
64 | * @return RewritingUrl |
||
65 | */ |
||
66 | public function getRewritingUrl() |
||
70 | |||
71 | /** |
||
72 | * @return RewritingRedirectType |
||
73 | */ |
||
74 | public function getRedirectType() |
||
78 | |||
79 | /** |
||
80 | * @param int $id|null |
||
|
|||
81 | * @return $this |
||
82 | */ |
||
83 | public function setId($id) |
||
89 | |||
90 | /** |
||
91 | * @return int |
||
92 | */ |
||
93 | public function getId() |
||
97 | |||
98 | /** |
||
99 | * @param array $parameters |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setParameters(array $parameters) |
||
108 | |||
109 | /** |
||
110 | * @return array |
||
111 | */ |
||
112 | public function getParameters() |
||
116 | |||
117 | /** |
||
118 | * @param boolean $propagationStopped |
||
119 | * @return $this |
||
120 | */ |
||
121 | public function setPropagationStopped($propagationStopped) |
||
127 | |||
128 | /** |
||
129 | * @return boolean |
||
130 | */ |
||
131 | public function getPropagationStopped() |
||
135 | |||
136 | /** |
||
137 | * @param null|int $redirected |
||
138 | * @return $this |
||
139 | */ |
||
140 | public function setRedirected($redirected) |
||
146 | |||
147 | /** |
||
148 | * @return null|int |
||
149 | */ |
||
150 | public function getRedirected() |
||
154 | |||
155 | /** |
||
156 | * @param string $url |
||
157 | * @return $this |
||
158 | */ |
||
159 | public function setUrl($url) |
||
165 | |||
166 | /** |
||
167 | * @return null|int |
||
168 | */ |
||
169 | public function getUrl() |
||
173 | |||
174 | /** |
||
175 | * @param $view |
||
176 | * @return $this |
||
177 | */ |
||
178 | public function setView($view) |
||
184 | |||
185 | /** |
||
186 | * @return null |
||
187 | */ |
||
188 | public function getView() |
||
192 | |||
193 | /** |
||
194 | * @param string $view_locale |
||
195 | * @return $this |
||
196 | */ |
||
197 | public function setViewLocale($view_locale) |
||
203 | |||
204 | /** |
||
205 | * @return null |
||
206 | */ |
||
207 | public function getViewLocale() |
||
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.