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