RoleRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gbere\SimpleAuth\Repository;
6
7
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
8
use Doctrine\Persistence\ManagerRegistry;
9
use Gbere\SimpleAuth\Entity\Role;
10
11
/**
12
 * @method Role|null find($id, $lockMode = null, $lockVersion = null)
13
 * @method Role|null findOneBy(array $criteria, array $orderBy = null)
14
 * @method Role[]    findAll()
15
 * @method Role[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
16
 */
17
class RoleRepository extends ServiceEntityRepository
18
{
19
    public function __construct(ManagerRegistry $registry)
20
    {
21
        parent::__construct($registry, Role::class);
22
    }
23
24
    // /**
25
    //  * @return Role[] Returns an array of Role objects
26
    //  */
27
    /*
28
    public function findByExampleField($value)
29
    {
30
        return $this->createQueryBuilder('r')
31
            ->andWhere('r.exampleField = :val')
32
            ->setParameter('val', $value)
33
            ->orderBy('r.id', 'ASC')
34
            ->setMaxResults(10)
35
            ->getQuery()
36
            ->getResult()
37
        ;
38
    }
39
    */
40
41
    /*
42
    public function findOneBySomeField($value): ?Role
43
    {
44
        return $this->createQueryBuilder('r')
45
            ->andWhere('r.exampleField = :val')
46
            ->setParameter('val', $value)
47
            ->getQuery()
48
            ->getOneOrNullResult()
49
        ;
50
    }
51
    */
52
}
53