| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 2 | public function invoke(MethodInvocation $invocation) |
|
| 34 | { |
||
| 35 | 2 | $object = $invocation->getThis(); |
|
| 36 | 2 | $ref = new \ReflectionProperty($object, self::PROP); |
|
| 37 | 2 | $ref->setAccessible(true); |
|
| 38 | 2 | $connection = $this->connectionLocator->getWrite(); |
|
| 39 | 2 | $ref->setValue($object, $connection); |
|
| 40 | |||
| 41 | 2 | return $invocation->proceed(); |
|
| 42 | } |
||
| 43 | } |
||
| 44 |