Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | abstract class AbstractCommandQueue implements CommandQueue |
||
20 | { |
||
21 | /** |
||
22 | * Command serializer. |
||
23 | * |
||
24 | * @var CommandSerializer |
||
25 | */ |
||
26 | private $serializer; |
||
27 | |||
28 | /** |
||
29 | * AbstractCommandQueue constructor. |
||
30 | * |
||
31 | * @param CommandSerializer $serializer |
||
32 | */ |
||
33 | public function __construct(CommandSerializer $serializer) |
||
34 | { |
||
35 | $this->serializer = $serializer; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get serialized command. |
||
40 | * |
||
41 | * @param Command $command |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | final protected function getSerializedCommand(Command $command): string |
||
48 | } |
||
49 | } |
||
50 |