| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | private function getConnection(MethodInvocation $invocation): ExtendedPdoInterface |
||
| 46 | { |
||
| 47 | $methodName = $invocation->getMethod()->name; |
||
| 48 | if (in_array($methodName, $this->readsMethods, true)) { |
||
| 49 | return $this->connectionLocator->getRead(); |
||
| 50 | } |
||
| 51 | |||
| 52 | return $this->connectionLocator->getWrite(); |
||
| 53 | } |
||
| 55 |