| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function getViewReferenceBuilder(View $view) |
||
| 39 | { |
||
| 40 | if (array_key_exists($viewClass = ClassUtils::getClass($view), $this->viewsReferenceBuilders)) { |
||
| 41 | return $this->viewsReferenceBuilders[$viewClass]; |
||
| 42 | } |
||
| 43 | throw new ServiceNotFoundException('No view reference builder found for '.$viewClass); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |