| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | trait ClassInfoTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Get class name of the given object. |
||
| 27 | */ |
||
| 28 | 2 | private function getObjectClass(object $object): string |
|
| 29 | { |
||
| 30 | 2 | return $this->getRealClassName($object::class); |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get the real class name of a class name that could be a proxy. |
||
| 35 | */ |
||
| 36 | 2 | private function getRealClassName(string $className): string |
|
| 57 | ); |
||
| 58 | } |
||
| 60 |