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 | 4 | public function __construct(Serializer $serializer, $format = "json") |
|
37 | |||
38 | 2 | public function serialize(CommandInterface $command) |
|
42 | |||
43 | 3 | public function unserialize(SerializedCommandData $serializedCommandData) |
|
55 | |||
56 | } |
||
57 |