| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function generateCacheKey(): array |
||
| 23 | { |
||
| 24 | $cacheKey = []; |
||
|
|
|||
| 25 | |||
| 26 | if ($this->db instanceof PdoConnectionInterface) { |
||
| 27 | $cacheKey = [$this->db->getDriver()->getDsn(), $this->db->getDriver()->getUsername()]; |
||
| 28 | } else { |
||
| 29 | throw new NotSupportedException('Only PDO connections are supported.'); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $cacheKey; |
||
| 33 | } |
||
| 35 |