| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Yaml implements Data |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Serialize data input into a YAML string. |
||
| 15 | */ |
||
| 16 | public function serialize(array $input): string |
||
| 17 | { |
||
| 18 | return SymfonyYaml::dump($input, 2, 4, SymfonyYaml::DUMP_MULTI_LINE_LITERAL_BLOCK); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * YAML file type. |
||
| 23 | */ |
||
| 24 | public function type(): string |
||
| 27 | } |
||
| 28 | } |
||
| 29 |