| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function getEntityRepository() |
||
| 36 | { |
||
| 37 | if (!$this->entityRepository) { |
||
| 38 | throw new \RuntimeException(sprintf( |
||
| 39 | 'Any defined entity repository into "%s" loader, consider calling "setEntityRepository()" right after object creation.', |
||
| 40 | get_class($this) |
||
| 41 | )); |
||
| 42 | } |
||
| 43 | |||
| 44 | return $this->entityRepository; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |