1 | <?php |
||
23 | final class StatementSerializer implements StatementSerializerInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var SerializerInterface The underlying serializer |
||
27 | */ |
||
28 | private $serializer; |
||
29 | |||
30 | public function __construct(SerializerInterface $serializer) |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | public function serializeStatement(Statement $statement) |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function serializeStatements(array $statements) |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | public function deserializeStatement($data, array $attachments = array()) |
||
65 | |||
66 | /** |
||
67 | * {@inheritDoc} |
||
68 | */ |
||
69 | public function deserializeStatements($data, array $attachments = array()) |
||
80 | } |
||
81 |