1 | <?php |
||
7 | class Serializer |
||
8 | { |
||
9 | protected $aggregate; |
||
10 | |||
11 | /** |
||
12 | * @param AggregateNormalizer|null $aggregate |
||
13 | */ |
||
14 | 2 | public function __construct(AggregateNormalizer $aggregate = null) |
|
18 | |||
19 | /** |
||
20 | * @param Envelope $envelope |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | 1 | public function serialize(Envelope $envelope) |
|
28 | |||
29 | /** |
||
30 | * @param string $contents |
||
31 | * |
||
32 | * @return Envelope |
||
33 | */ |
||
34 | 1 | public function unserialize($contents) |
|
40 | |||
41 | /** |
||
42 | * @return AggregateNormalizer |
||
43 | */ |
||
44 | private function createAggregateNormalizer() |
||
51 | } |
||
52 |