1 | <?php |
||
27 | class Selectors extends Selector |
||
28 | { |
||
29 | /** |
||
30 | * @var SelectorFactoryInterface |
||
31 | */ |
||
32 | protected static $factory; |
||
33 | |||
34 | /** |
||
35 | * @var SelectorInterface |
||
36 | */ |
||
37 | private $selector; |
||
38 | |||
39 | /** |
||
40 | * @return \Cubiche\Core\Selector\SelectorFactoryInterface |
||
41 | */ |
||
42 | protected static function factory() |
||
50 | |||
51 | /** |
||
52 | * @param SelectorFactoryInterface $factory |
||
53 | */ |
||
54 | public static function setFactory(SelectorFactoryInterface $factory) |
||
58 | |||
59 | /** |
||
60 | * @param string $selectorClass |
||
61 | * @param string $selectorName |
||
62 | */ |
||
63 | public static function addSelector($selectorClass, $selectorName = null) |
||
67 | |||
68 | /** |
||
69 | * @param string $namespace |
||
70 | */ |
||
71 | public static function addNamespace($namespace) |
||
75 | |||
76 | /** |
||
77 | * @param SelectorInterface $selector |
||
78 | */ |
||
79 | protected function __construct(SelectorInterface $selector) |
||
83 | |||
84 | /** |
||
85 | * @param string $method |
||
86 | * @param array $arguments |
||
87 | * |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public static function __callStatic($method, $arguments) |
||
94 | |||
95 | /** |
||
96 | * @param string $method |
||
97 | * @param array $args |
||
|
|||
98 | * |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function __call($method, $arguments) |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function apply($value) |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | public function select(SelectorInterface $selector) |
||
123 | |||
124 | /** |
||
125 | * @param SelectorVisitorInterface $visitor |
||
126 | * |
||
127 | * @return mixed |
||
128 | */ |
||
129 | public function acceptSelectorVisitor(SelectorVisitorInterface $visitor) |
||
133 | |||
134 | /** |
||
135 | * @return \Cubiche\Core\Selector\SelectorInterface |
||
136 | */ |
||
137 | public function selector() |
||
141 | } |
||
142 |
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.