| 1 | <?php |
||
| 16 | class JmsSerializer implements SerializerInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * |
||
| 20 | * @var Serializer |
||
| 21 | */ |
||
| 22 | private $serializer; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Serialization format. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $format; |
||
| 30 | |||
| 31 | 4 | public function __construct(Serializer $serializer, $format = "json") |
|
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 2 | public function serialize(CommandInterface $command) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 3 | public function unserialize(SerializedCommandData $serializedCommandData) |
|
| 60 | } |
||
| 61 |