| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getCount(): int |
||
| 23 | { |
||
| 24 | $connection = $this->getEntityManager()->getConnection(); |
||
| 25 | |||
| 26 | $query = $connection->createQueryBuilder() |
||
| 27 | ->select('COUNT(*)') |
||
| 28 | ->from($connection->quoteIdentifier($this->getClassMetadata()->getTableName())); |
||
| 29 | |||
| 30 | return (int) $query->execute()->fetchColumn(); |
||
| 31 | } |
||
| 33 |