1 | <?php |
||
13 | class Listener extends AbstractListenerBase |
||
14 | { |
||
15 | /** |
||
16 | * Looks for new objects that should be indexed. |
||
17 | * |
||
18 | * @param ModelEvent $eventArgs |
||
|
|||
19 | */ |
||
20 | public function onModelInsertPost(ModelEvent $event) |
||
24 | |||
25 | /** |
||
26 | * Looks for objects being updated that should be indexed or removed from the index. |
||
27 | * |
||
28 | * @param ModelEvent $eventArgs |
||
29 | */ |
||
30 | public function onModelUpdatePost(ModelEvent $event) |
||
34 | |||
35 | /** |
||
36 | * @param ModelEvent $eventArgs |
||
37 | */ |
||
38 | public function onModelDeletePre(ModelEvent $event) |
||
42 | |||
43 | public function onConnectionCommitPost(ConnectionEvent $event) |
||
47 | } |
||
48 |
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.