These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\NodeSearchBundle\EventListener; |
||
4 | |||
5 | use Kunstmaan\NodeBundle\Event\NodeEvent; |
||
6 | |||
7 | interface NodeIndexUpdateEventListenerInterface |
||
8 | { |
||
9 | /** |
||
10 | * @param NodeEvent $event |
||
11 | */ |
||
12 | public function onPostPublish(NodeEvent $event); |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | /** |
||
15 | * @param NodeEvent $event |
||
16 | */ |
||
17 | public function onPostPersist(NodeEvent $event); |
||
0 ignored issues
–
show
For interfaces and abstract methods it is generally a good practice to add a
@return annotation even if it is just @return void or @return null , so that implementors know what to do in the overridden method.
For interface and abstract methods, it is impossible to infer the return type
from the immediate code. In these cases, it is generally advisible to explicitly
annotate these methods with a
Loading history...
|
|||
18 | |||
19 | /** |
||
20 | * @param NodeEvent $event |
||
21 | */ |
||
22 | public function onPostDelete(NodeEvent $event); |
||
0 ignored issues
–
show
For interfaces and abstract methods it is generally a good practice to add a
@return annotation even if it is just @return void or @return null , so that implementors know what to do in the overridden method.
For interface and abstract methods, it is impossible to infer the return type
from the immediate code. In these cases, it is generally advisible to explicitly
annotate these methods with a
Loading history...
|
|||
23 | |||
24 | /** |
||
25 | * @param NodeEvent $event |
||
26 | */ |
||
27 | public function onPostUnPublish(NodeEvent $event); |
||
0 ignored issues
–
show
For interfaces and abstract methods it is generally a good practice to add a
@return annotation even if it is just @return void or @return null , so that implementors know what to do in the overridden method.
For interface and abstract methods, it is impossible to infer the return type
from the immediate code. In these cases, it is generally advisible to explicitly
annotate these methods with a
Loading history...
|
|||
28 | } |
||
29 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.