1 | <?php |
||
17 | class SymfonySerializer implements SerializerInterface |
||
18 | { |
||
19 | /** |
||
20 | * |
||
21 | * @var Serializer |
||
22 | */ |
||
23 | private $serializer; |
||
24 | |||
25 | /** |
||
26 | * Serialization format. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $format; |
||
31 | |||
32 | /** |
||
33 | * Class constructor. |
||
34 | * |
||
35 | * @param Serializer $serializer |
||
36 | * @param string $format Serialization format. |
||
37 | */ |
||
38 | 4 | public function __construct(Serializer $serializer, $format = "json") |
|
43 | |||
44 | 2 | public function serialize(CommandInterface $command) |
|
48 | |||
49 | 3 | public function unserialize(SerializedCommandData $serializedCommandData) |
|
61 | |||
62 | } |
||
63 |