Conditions | 3 |
Paths | 4 |
Total Lines | 23 |
Code Lines | 15 |
Lines | 23 |
Ratio | 100 % |
Tests | 14 |
CRAP Score | 3.0026 |
Changes | 0 |
1 | <?php |
||
25 | /** |
||
26 | * @return string |
||
27 | * @throws Exception |
||
28 | */ |
||
29 | 1 | public function getSQL() |
|
30 | 1 | { |
|
31 | 1 | return $this->getDoctrineQuery()->getSQL(); |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return int |
||
36 | */ |
||
37 | 1 | protected function getCountInternal() |
|
38 | { |
||
39 | 1 | return (int)$this |
|
40 | 1 | ->getDoctrineQuery() |
|
41 | 1 | ->select('count(*) as row_count') |
|
42 | 1 | ->execute() |
|
43 | 1 | ->fetchColumn(); |
|
44 | } |
||
45 | |||
46 | 3 | protected function getHandlerFactory() |
|
47 | { |
||
48 | 3 | return new Factory(); |
|
51 |