1 | <?php |
||
21 | class AuthorizeEvent extends Event |
||
22 | { |
||
23 | const EVENT = 'WyriHaximus.Ratchet.%s.authorize'; |
||
24 | |||
25 | public static function realmEvent($realm) |
||
29 | |||
30 | /** |
||
31 | * @var Deferred |
||
32 | */ |
||
33 | private $deferred; |
||
34 | |||
35 | /** |
||
36 | * @param LoopInterface $loop |
||
|
|||
37 | * @return static |
||
38 | */ |
||
39 | public static function create($realm, Session $session, ActionMessageInterface $actionMsg) |
||
47 | |||
48 | public function __construct($name, $subject = null, $data = null) |
||
53 | |||
54 | /** |
||
55 | * @return Session |
||
56 | */ |
||
57 | public function getRealm() |
||
61 | |||
62 | /** |
||
63 | * @return Session |
||
64 | */ |
||
65 | public function getSession() |
||
69 | |||
70 | /** |
||
71 | * @return ActionMessageInterface |
||
72 | */ |
||
73 | public function getActionMessage() |
||
77 | |||
78 | /** |
||
79 | * @return PromiseInterface |
||
80 | */ |
||
81 | public function promise() |
||
85 | |||
86 | public function reject() |
||
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.