Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
49 | private function getClass($object): string |
||
50 | { |
||
51 | if (interface_exists('Doctrine\Common\Persistence\Proxy') && $object instanceof Proxy) { |
||
52 | if (!$object->__isInitialized()) { |
||
53 | $object->__load(); |
||
54 | 3 | } |
|
55 | |||
56 | 3 | /** @var \ReflectionClass $reflectionParentClass */ |
|
57 | 1 | $reflectionParentClass = (new \ReflectionClass($object))->getParentClass(); |
|
58 | 1 | ||
59 | return $reflectionParentClass->getName(); |
||
60 | } |
||
61 | 1 | ||
62 | return get_class($object); |
||
63 | } |
||
65 |