1 | <?php |
||
7 | class RouterRule |
||
8 | { |
||
9 | /** |
||
10 | * @var RouterInterface |
||
11 | */ |
||
12 | protected $router; |
||
13 | |||
14 | /** |
||
15 | * @var callable |
||
16 | */ |
||
17 | protected $matcher; |
||
18 | |||
19 | /** |
||
20 | * @var callable |
||
21 | */ |
||
22 | protected $handler; |
||
23 | |||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | protected $propagate; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $limit; |
||
33 | |||
34 | /** |
||
35 | * @var array|null |
||
36 | */ |
||
37 | protected $pointer; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | protected $cancelled; |
||
43 | |||
44 | /** |
||
45 | * @param RouterInterface $router |
||
46 | * @param callable $matcher |
||
47 | * @param callable $handler |
||
48 | * @param bool $propagate |
||
49 | * @param int $limit |
||
50 | */ |
||
51 | 24 | public function __construct(RouterInterface $router, callable $matcher, callable $handler, $propagate = false, $limit = 0) |
|
61 | |||
62 | /** |
||
63 | * |
||
64 | */ |
||
65 | 10 | public function __destruct() |
|
74 | |||
75 | /** |
||
76 | * Return Router to which handler is attached to. |
||
77 | * |
||
78 | * @return RouterInterface |
||
79 | */ |
||
80 | 1 | public function getRouter() |
|
84 | |||
85 | /** |
||
86 | * Match given message protocol. |
||
87 | * |
||
88 | * @param string $sender |
||
89 | * @param ProtocolInterface $protocol |
||
90 | * @return bool |
||
91 | */ |
||
92 | 8 | public function match($sender, ProtocolInterface $protocol) |
|
97 | |||
98 | /** |
||
99 | * Handle given message protocol. |
||
100 | * |
||
101 | * @param string $sender |
||
102 | * @param ProtocolInterface $protocol |
||
103 | * @param int $flags |
||
104 | * @param callable|null $success |
||
105 | * @param callable|null $failure |
||
106 | * @param callable|null $cancel |
||
107 | * @param float $timeout |
||
108 | * @return bool |
||
109 | */ |
||
110 | 12 | public function handle($sender, ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0) |
|
126 | |||
127 | /** |
||
128 | * Remove this handler. |
||
129 | */ |
||
130 | public function cancel() |
||
138 | |||
139 | /** |
||
140 | * @internal |
||
141 | * @param string $stack |
||
142 | * @param int $pointer |
||
143 | */ |
||
144 | 16 | public function setPointer($stack, $pointer) |
|
148 | } |
||
149 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.