| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | abstract class EntityRepository extends \Doctrine\ORM\EntityRepository |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Count all entities. |
||
| 20 | * |
||
| 21 | * @return int |
||
| 22 | * @since 1.0 |
||
| 23 | */ |
||
| 24 | public function countAll() |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Count entities (optionally filtered by a criteria). |
||
| 31 | * |
||
| 32 | * @return int |
||
| 33 | * @since 1.0 |
||
| 34 | */ |
||
| 35 | public function countBy($criteria = []) |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | * @since 1.0 |
||
| 48 | */ |
||
| 49 | protected function parseCriteria(array $criteria) |
||
| 54 |