| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 17 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 27 | public function count()  | 
            ||
| 28 |     { | 
            ||
| 29 | $queryBuilder = $this->cloneQuery($this->query);  | 
            ||
| 30 | |||
| 31 | $result = $queryBuilder  | 
            ||
| 32 |             ->resetQueryPart('select') | 
            ||
| 33 |             ->resetQueryPart('orderBy') | 
            ||
| 34 | ->setMaxResults(null)  | 
            ||
| 35 | ->setFirstResult(null)  | 
            ||
| 36 |             ->select('COUNT(id)') | 
            ||
| 37 | ->execute()  | 
            ||
| 38 | ->fetchColumn(0)  | 
            ||
| 39 | ;  | 
            ||
| 40 | |||
| 41 | $this->count = false === $result ? 0 : $result;  | 
            ||
| 42 | |||
| 43 | return $this->count;  | 
            ||
| 44 | }  | 
            ||
| 70 |