1 | <?php |
||
11 | class WebSocketRouteProxy implements \PHPDaemon\WebSocket\RouteInterface |
||
12 | { |
||
13 | use \PHPDaemon\Traits\StaticObjectWatchdog; |
||
14 | |||
15 | protected $heartbeatTimer; |
||
16 | |||
17 | protected $realRoute; |
||
18 | |||
19 | protected $sockjs; |
||
20 | |||
21 | /** |
||
22 | * __construct |
||
23 | * @param Application $sockjs |
||
24 | * @param object $conn |
||
|
|||
25 | */ |
||
26 | public function __construct($sockjs, $route) |
||
31 | |||
32 | /** |
||
33 | * __get |
||
34 | * @param string $k |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function &__get($k) |
||
41 | |||
42 | /** |
||
43 | * __call |
||
44 | * @param string $method |
||
45 | * @param array $args |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function __call($method, $args) |
||
53 | |||
54 | /** |
||
55 | * Called when new frame received. |
||
56 | * @param string $data Frame's contents. |
||
57 | * @param integer $type Frame's type. |
||
58 | * @return void |
||
59 | */ |
||
60 | public function onFrame($data, $type) |
||
76 | |||
77 | /** |
||
78 | * onPacket |
||
79 | * @param string $data Frame's contents. |
||
80 | * @param integer $type Frame's type. |
||
81 | * @return void |
||
82 | */ |
||
83 | public function onPacket($frame, $type) |
||
87 | |||
88 | /** |
||
89 | * realRoute onBeforeHandshake |
||
90 | * @param callable $cb |
||
91 | * @return void|false |
||
92 | */ |
||
93 | public function onBeforeHandshake($cb) |
||
100 | |||
101 | /** |
||
102 | * @TODO DESCR |
||
103 | * @return void |
||
104 | */ |
||
105 | public function onHandshake() |
||
116 | |||
117 | /** |
||
118 | * @TODO DESCR |
||
119 | * @return void |
||
120 | */ |
||
121 | public function onWrite() |
||
127 | |||
128 | /** |
||
129 | * @TODO DESCR |
||
130 | * @return void |
||
131 | */ |
||
132 | public function onFinish() |
||
140 | } |
||
141 |
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.