| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function decode($schema) |
||
| 17 | { |
||
| 18 | try { |
||
| 19 | return Yaml::parse($schema, Yaml::PARSE_OBJECT_FOR_MAP | Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE); |
||
| 20 | } catch (ParseException $e) { |
||
| 21 | throw new DecodingException(sprintf('Invalid Yaml: %s', $e->getMessage()), $e->getCode(), $e); |
||
| 22 | } |
||
| 23 | } |
||
| 24 | } |
||
| 25 |