| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | class YamlHandler extends TypeHandler |
||
| 21 | { |
||
| 22 | protected $interpolator; |
||
| 23 | |||
| 24 | 3 | public function __construct(Interpolator $interpolator, $options = []) |
|
| 25 | { |
||
| 26 | 3 | parent::__construct($options); |
|
| 27 | 3 | $this->interpolator = $interpolator; |
|
| 28 | 3 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 3 | public function renderType($data) |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function parse($yaml) |
||
| 50 |