| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class Mock extends TestCase |
||
| 16 | { |
||
| 17 | private CacheInterface|null $cache = null; |
||
| 18 | private SchemaCache|null $schemaCache = null; |
||
| 19 | |||
| 20 | public function cache(): CacheInterface |
||
| 21 | { |
||
| 22 | if ($this->cache === null) { |
||
| 23 | $this->cache = new Cache(new ArrayCache()); |
||
| 24 | } |
||
| 25 | |||
| 26 | return $this->cache; |
||
|
|
|||
| 27 | } |
||
| 28 | |||
| 29 | public function connection(): ConnectionInterface |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function queryHelper(): QueryHelper |
||
| 37 | } |
||
| 38 | |||
| 39 | public function schemaCache(): SchemaCache |
||
| 48 |