| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function apply($object, $property, $objectCopier) |
||
| 27 | { |
||
| 28 | $reflectionProperty = new \ReflectionProperty($object, $property); |
||
| 29 | $reflectionProperty->setAccessible(true); |
||
| 30 | |||
| 31 | $value = call_user_func($this->callback, $reflectionProperty->getValue($object)); |
||
| 32 | |||
| 33 | $reflectionProperty->setValue($object, $value); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |