| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function getRendererForNode($nodeId) |
||
| 48 | { |
||
| 49 | $orientation = isset($this->reportConfig[$nodeId]) ? $this->reportConfig[$nodeId] : RendererInterface::ORIENTATION_VERTICAL; |
||
| 50 | if (!isset($this->renderer[$orientation])) { |
||
| 51 | throw new \RuntimeException("Could not find writer for orientation $orientation"); |
||
| 52 | } |
||
| 53 | |||
| 54 | return $this->renderer[$orientation]; |
||
| 55 | } |
||
| 56 | |||
| 58 |