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