1 | <?php |
||
23 | class AuthorizationManager extends RouterModuleClient implements RealmModuleInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var EventManager |
||
27 | */ |
||
28 | private $eventManager; |
||
29 | |||
30 | /** |
||
31 | * @param EventManager $eventManager |
||
32 | */ |
||
33 | public function setEventManager(EventManager $eventManager) |
||
38 | |||
39 | /** |
||
40 | * Listen for Router events. |
||
41 | * Required to add the authorization module to the realm |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public static function getSubscribedEvents() |
||
51 | |||
52 | /** |
||
53 | * @param NewRealmEvent $newRealmEvent |
||
54 | */ |
||
55 | public function handleNewRealm(NewRealmEvent $newRealmEvent) |
||
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getSubscribedRealmEvents() |
||
76 | |||
77 | /** |
||
78 | * @param MessageEvent $msg |
||
|
|||
79 | */ |
||
80 | public function authorize(MessageEvent $messageEvent) |
||
89 | } |
||
90 |
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.