Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
10 | 2 | protected function getReference($fqcn, $identifier) |
|
11 | { |
||
12 | 2 | $manager = $this->getRegistry()->getManagerForClass($fqcn); |
|
13 | 2 | if (!$manager instanceof EntityManagerInterface) { |
|
14 | return $manager->find($fqcn, $identifier); |
||
15 | } |
||
16 | |||
17 | 2 | return $manager->getPartialReference($fqcn, $identifier); |
|
18 | } |
||
19 | } |
||
20 |