Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class XmlSerializer extends AbstractSerializer implements MediaTypeHandler |
||
11 | { |
||
12 | private const FORMAT_XML = 'xml'; |
||
13 | |||
14 | /** {@inheritdoc} */ |
||
15 | 4 | public function getSupportedFormat(): string |
|
16 | { |
||
17 | 4 | return self::FORMAT_XML; |
|
18 | } |
||
19 | |||
20 | /** {@inheritdoc} */ |
||
21 | 1 | public function getSupportedMediaTypes(): array |
|
24 | } |
||
25 | |||
26 | /** {@inheritdoc} */ |
||
27 | 1 | public function getContentType(): string |
|
32 |