| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Yaml implements IFileFormat |
||
| 15 | { |
||
| 16 | public function unpack(string $content): array |
||
| 17 | { |
||
| 18 | $result = @yaml_parse($content); |
||
| 19 | if (false === $result) { |
||
| 20 | throw new MapperException('Cannot parse YAML input'); |
||
| 21 | } |
||
| 22 | return $result; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function pack(array $records): string |
||
| 28 | } |
||
| 29 | } |
||
| 30 |