Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class WebSocketEvents implements EventInterface |
||
9 | { |
||
10 | public function message($message, Api $apiWrapper, \GearmanClient $gearmanClient) |
||
11 | { |
||
12 | $method = $apiWrapper->getCallbackMethod($message); |
||
13 | $methodName = lcfirst($method->getMethodName()); |
||
14 | $gearmanClient->doHighBackground($methodName, json_encode($method)); |
||
15 | } |
||
16 | |||
17 | public function close($code, $reason) |
||
20 | } |
||
21 | |||
22 | public function error(\Exception $exception) |
||
25 | } |
||
26 | } |
||
27 |