| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | abstract class ConnectionHelper |
||
| 16 | { |
||
| 17 | protected Factory $factory; |
||
| 18 | |||
| 19 | public function createARFactory(ConnectionInterface $db): ActiveRecordFactory |
||
| 20 | { |
||
| 21 | return new ActiveRecordFactory($this->createFactory($db)); |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function createSchemaCache(): SchemaCache |
||
| 27 | } |
||
| 28 | |||
| 29 | private function createFactory(ConnectionInterface $db): Factory |
||
| 35 |