Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | abstract protected function connection(): Connection; |
||
32 | |||
33 | 2 | final protected static function createResult(QueryBuilder $qb): Result |
|
34 | { |
||
35 | 2 | return new FactoryResult( |
|
36 | static function(array $data) { |
||
37 | 2 | return static::createObject($data); |
|
38 | 2 | }, |
|
39 | 2 | static::createDBALQueryBuilderResult($qb) |
|
40 | ); |
||
41 | } |
||
42 | |||
43 | 2 | protected static function createDBALQueryBuilderResult(QueryBuilder $qb): DBALQueryBuilderResult |
|
44 | { |
||
53 |