1 | <?php |
||
16 | class Messenger extends EventEmitter |
||
17 | { |
||
18 | const INTERVAL = 0.1; |
||
19 | const TERMINATE_RPC = 'wyrihaximus.react.child-process.messenger.terminate'; |
||
20 | |||
21 | /** |
||
22 | * @var ConnectionInterface |
||
23 | */ |
||
24 | protected $connection; |
||
25 | |||
26 | /** |
||
27 | * @var OutstandingCalls |
||
28 | */ |
||
29 | protected $outstandingRpcCalls; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $rpcs = []; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $options = []; |
||
40 | |||
41 | /** |
||
42 | * @var string[] |
||
43 | */ |
||
44 | protected $buffer = ''; |
||
45 | |||
46 | protected $defaultOptions = [ |
||
47 | 'lineClass' => 'WyriHaximus\React\ChildProcess\Messenger\Messages\Line', |
||
48 | 'messageFactoryClass' => 'WyriHaximus\React\ChildProcess\Messenger\Messages\Factory', |
||
49 | 'lineOptions' => [], |
||
50 | ]; |
||
51 | |||
52 | /** |
||
53 | * Messenger constructor. |
||
54 | * @param ConnectionInterface $connection |
||
55 | * @param array $options |
||
56 | */ |
||
57 | 7 | public function __construct( |
|
85 | |||
86 | /** |
||
87 | * @param string $target |
||
88 | * @param callable $listener |
||
89 | */ |
||
90 | 1 | public function registerRpc($target, callable $listener) |
|
94 | |||
95 | /** |
||
96 | * @param string $target |
||
97 | */ |
||
98 | 1 | public function deregisterRpc($target) |
|
102 | |||
103 | /** |
||
104 | * @param string $target |
||
105 | * @return bool |
||
106 | */ |
||
107 | 1 | public function hasRpc($target) |
|
111 | |||
112 | /** |
||
113 | * @param $target |
||
114 | * @param $payload |
||
115 | * @return React\Promise\PromiseInterface |
||
116 | */ |
||
117 | 1 | public function callRpc($target, $payload) |
|
132 | |||
133 | /** |
||
134 | * @param Message $message |
||
135 | */ |
||
136 | 1 | public function message(Message $message) |
|
140 | |||
141 | /** |
||
142 | * @param Error $error |
||
143 | */ |
||
144 | 1 | public function error(Error $error) |
|
148 | |||
149 | /** |
||
150 | * @param string $uniqid |
||
151 | * @return OutstandingCall |
||
152 | */ |
||
153 | 1 | public function getOutstandingCall($uniqid) |
|
157 | |||
158 | /** |
||
159 | * @param Rpc $rpc |
||
160 | * @return \React\Promise\Promise |
||
161 | */ |
||
162 | public function rpc(Rpc $rpc) |
||
171 | |||
172 | /** |
||
173 | * @param ActionableMessageInterface $line |
||
174 | * @return LineInterface |
||
175 | */ |
||
176 | 4 | public function createLine(ActionableMessageInterface $line) |
|
182 | |||
183 | /** |
||
184 | * @return \React\Promise\Promise |
||
185 | */ |
||
186 | 1 | public function softTerminate() |
|
190 | |||
191 | /** |
||
192 | * @param string $line |
||
193 | */ |
||
194 | 4 | public function write($line) |
|
198 | |||
199 | /** |
||
200 | * @param int|null $exitCode |
||
201 | * @internal |
||
202 | */ |
||
203 | 1 | public function crashed($exitCode) |
|
207 | |||
208 | 2 | private function handleData() |
|
218 | |||
219 | 1 | private function iterateMessages(array $messages) |
|
231 | } |
||
232 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.