| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function invoke(MethodInvocation $invocation) |
||
| 27 | { |
||
| 28 | $object = $invocation->getThis(); |
||
| 29 | $ref = new ReflectionProperty($object, self::PROP); |
||
| 30 | $ref->setAccessible(true); |
||
| 31 | $connection = $this->connectionLocator->getWrite(); |
||
| 32 | $ref->setValue($object, $connection); |
||
| 33 | |||
| 34 | return $invocation->proceed(); |
||
| 35 | } |
||
| 37 |