| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function parse() |
||
| 10 | { |
||
| 11 | $lineInfo = $this->getStream()->read(); |
||
| 12 | if (!isset($lineInfo['tag']) || $lineInfo['tag'] !== $this->getName()) { |
||
| 13 | return $this; |
||
| 14 | } |
||
| 15 | |||
| 16 | foreach ($this->getTransformers() as $transformer) { |
||
| 17 | $lineInfo['value'] = $transformer->transform($lineInfo['value']); |
||
| 18 | } |
||
| 19 | |||
| 20 | return $this->setResult($lineInfo['value']); |
||
| 21 | } |
||
| 22 | |||
| 39 |