1 | <?php |
||
8 | class ComposerEncoder implements EncoderInterface, DecoderInterface |
||
9 | { |
||
10 | const FORMAT = 'composer'; |
||
11 | |||
12 | /** @var AppComposerEncoder */ |
||
13 | private $appComposerEncoder; |
||
14 | |||
15 | 6 | public function __construct(AppComposerEncoder $appComposerEncoder) |
|
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | 1 | public function encode($data, $format, array $context = array()) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 2 | public function supportsEncoding($format) |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 1 | public function decode($data, $format, array $context = array()) |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 2 | public function supportsDecoding($format) |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 4 | public function isSupportedFormat($format) |
|
59 | } |
||
60 |