| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | 2 | View Code Duplication | public function getValue(ServiceLocatorInterface $sm) |
| 28 | { |
||
| 29 | try { |
||
| 30 | 2 | return $sm->get('Doctrine\ORM\EntityManager')->getRepository($this->value); |
|
| 31 | 1 | } catch (\Exception $e) { |
|
| 32 | 1 | throw CannotGetValue::of(sprintf('repository of %s', $this->value), $e); |
|
| 33 | } |
||
| 34 | } |
||
| 35 | } |
||
| 36 |