1 | <?php |
||
4 | class ExtjsExtension extends \Twig_Extension { |
||
5 | |||
6 | protected $generator; |
||
7 | protected $router; |
||
8 | |||
9 | /** |
||
10 | * DI for ExtJS Generator |
||
11 | * @param $generator |
||
12 | */ |
||
13 | 3 | public function setGenerator($generator) { |
|
16 | |||
17 | /** |
||
18 | * DI for Router |
||
19 | * @param $router |
||
20 | */ |
||
21 | 3 | public function setRouter($router) { |
|
24 | |||
25 | /** |
||
26 | * Returns the name of the extension. |
||
27 | * |
||
28 | * @return string The extension name |
||
29 | */ |
||
30 | 3 | public function getName() |
|
34 | |||
35 | 2 | public function getFilters() { |
|
40 | |||
41 | 2 | public function getFunctions() |
|
47 | |||
48 | /** |
||
49 | * Inject ExtJs Model into the DOM. |
||
50 | * |
||
51 | * @param boolean $injection Produce ExtJS model code on the page directly? |
||
|
|||
52 | * @param string $model Model Name. |
||
53 | */ |
||
54 | 2 | public function injectModel() { |
|
69 | |||
70 | public function ucfirst($string) { |
||
74 | } |
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.