1 | <?php |
||
12 | class YamlHandler extends AbstractFormatHandler |
||
13 | { |
||
14 | /** |
||
15 | * @var Yaml |
||
16 | */ |
||
17 | protected $yamlParser; |
||
18 | |||
19 | /** |
||
20 | * construct. |
||
21 | * |
||
22 | * @param Yaml $yamlParser |
||
23 | * @param MajoraNormalizer $normalizer |
||
24 | */ |
||
25 | 12 | public function __construct(Yaml $yamlParser, MajoraNormalizer $normalizer) |
|
31 | |||
32 | /** |
||
33 | * @see FormatHandlerInterface::serialize() |
||
34 | */ |
||
35 | 6 | public function serialize($data, $scope) |
|
41 | |||
42 | /** |
||
43 | * @see FormatHandlerInterface::deserialize() |
||
44 | */ |
||
45 | 6 | public function deserialize($data, $output) |
|
52 | } |
||
53 |