1 | <?php |
||
20 | class CommandResolver |
||
21 | { |
||
22 | /** |
||
23 | * @var RealTimeClient |
||
24 | */ |
||
25 | protected $client; |
||
26 | |||
27 | /** |
||
28 | * @var Payload |
||
29 | */ |
||
30 | protected $payload; |
||
31 | |||
32 | 8 | public function __construct(Payload $payload, RealTimeClient $client) |
|
37 | |||
38 | /** |
||
39 | * @param array|null $configuration |
||
40 | * |
||
41 | * @return bool|AbstractCommand |
||
42 | */ |
||
43 | 8 | public function resolveCommand(array $configuration = null) |
|
57 | |||
58 | /** |
||
59 | * @param string $message |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | 8 | protected function detectCommandClass(string $message) : string |
|
69 | } |
||
70 |