Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 23 | private static function getReflectionProperty($object, $propertyName) |
|
43 | { |
||
44 | 23 | $reflectionClass = new \ReflectionClass($object); |
|
45 | |||
46 | 23 | $reflectionProperty = $reflectionClass->getProperty($propertyName); |
|
47 | 23 | $reflectionProperty->setAccessible(true); |
|
48 | |||
49 | 23 | return $reflectionProperty; |
|
50 | } |
||
51 | } |
||
52 |