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