| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | abstract class Connection |
||
| 14 | { |
||
| 15 | private CacheInterface|null $cache = null; |
||
| 16 | private QueryCache|null $queryCache = null; |
||
| 17 | private SchemaCache|null $schemaCache = null; |
||
| 18 | |||
| 19 | public function getQueryCache(): QueryCache |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getSchemaCache(): SchemaCache |
||
| 29 | { |
||
| 30 | if ($this->schemaCache === null) { |
||
| 31 | $this->schemaCache = new SchemaCache($this->createCache()); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this->schemaCache; |
||
| 35 | } |
||
| 36 | |||
| 37 | private function createCache(): CacheInterface |
||
| 44 | } |
||
| 45 | } |
||
| 46 |