Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
22 | 12 | public function countAll() : int |
|
23 | { |
||
24 | 12 | $qb = $this->getEntityManager() |
|
25 | 12 | ->createQueryBuilder(); |
|
26 | |||
27 | 12 | $qb->select('count(entry.id)') |
|
28 | 12 | ->from(Entry::class, 'entry'); |
|
29 | |||
30 | 12 | return (int) $qb->getQuery() |
|
31 | 12 | ->getSingleScalarResult(); |
|
32 | } |
||
57 |