| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public static function setProperty($className, $property, $object, $value) |
||
| 38 | { |
||
| 39 | $reflectionClass = new \ReflectionClass($className); |
||
| 40 | $reflectionProperty = $reflectionClass->getProperty($property); |
||
| 41 | $reflectionProperty->setAccessible(true); |
||
| 42 | $reflectionProperty->setValue($object, $value); |
||
| 43 | return $object; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |