| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | public function convert($xmlDocument) |
||
| 51 | { |
||
| 52 | /** |
||
| 53 | * @var resource $xmlDocument |
||
| 54 | */ |
||
| 55 | if (class_exists($this->streamClass)) { |
||
| 56 | return new $this->streamClass($xmlDocument); |
||
| 57 | } |
||
| 58 | |||
| 59 | throw new \RuntimeException(sprintf('Provided StreamInterface implementation "%s" is not available on this system.', $this->streamClass)); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |