UserRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCountUsers() 0 7 1
1
<?php
2
3
namespace AppBundle\Repository;
4
use Doctrine\ORM\EntityRepository;
5
6
/**
7
 * UserRepository
8
 *
9
 * This class was generated by the Doctrine ORM. Add your own custom
10
 * repository methods below.
11
 */
12
class UserRepository extends EntityRepository
13
{
14
    public function getCountUsers()
15
    {
16
        return $this->createQueryBuilder('u')
17
            ->select('count(u.id) as countUsers')
18
            ->getQuery()
19
            ->getSingleResult();
20
    }
21
}
22