1 | <?php |
||
10 | final class PlainMessageNormalizer implements NormalizerInterface, DenormalizerInterface |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 1 | public function normalize($object, $format = null, array $context = []) |
|
16 | { |
||
17 | return [ |
||
18 | 1 | 'name' => $object->getName(), |
|
19 | 1 | 'arguments' => $object->all(), |
|
20 | 1 | ]; |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 1 | public function denormalize($data, $class, $format = null, array $context = []) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function supportsDenormalization($data, $type, $format = null) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function supportsNormalization($data, $format = null) |
||
50 | } |
||
51 |