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) |
|
60 | |||
61 | /** |
||
62 | * @param string $message |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | 8 | protected function detectCommandClass(string $message) : string |
|
72 | } |
||
73 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.