Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public static function setProperty($className, $property, $object, $value) |
||
45 | { |
||
46 | $reflectionClass = new \ReflectionClass($className); |
||
47 | $reflectionProperty = $reflectionClass->getProperty($property); |
||
48 | $reflectionProperty->setAccessible(true); |
||
49 | $reflectionProperty->setValue($object, $value); |
||
50 | return $object; |
||
51 | } |
||
52 | } |
||
53 |