RoleRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 10
ccs 1
cts 1
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * /src/Repository/RoleRepository.php
5
 *
6
 * @author TLe, Tarmo Leppänen <[email protected]>
7
 */
8
9
namespace App\Repository;
10
11
use App\Entity\Role as Entity;
12
use Doctrine\Persistence\ManagerRegistry;
13
14
/**
15
 * Class RoleRepository
16
 *
17
 * @package App\Repository
18
 * @author TLe, Tarmo Leppänen <[email protected]>
19
 *
20
 * @psalm-suppress LessSpecificImplementedReturnType
21
 * @codingStandardsIgnoreStart
22
 *
23
 * @method Entity|null find(string $id, ?int $lockMode = null, ?int $lockVersion = null)
24
 * @method Entity|null findAdvanced(string $id, string | int | null $hydrationMode = null)
25
 * @method Entity|null findOneBy(array $criteria, ?array $orderBy = null)
26
 * @method Entity[] findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null)
27
 * @method Entity[] findByAdvanced(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null, ?array $search = null)
28
 * @method Entity[] findAll()
29
 *
30
 * @codingStandardsIgnoreEnd
31
 */
32
class RoleRepository extends BaseRepository
33
{
34
    /**
35
     * @psalm-var class-string
36
     */
37
    protected static string $entityName = Entity::class;
38
39 196
    public function __construct(
40
        protected ManagerRegistry $managerRegistry,
41
    ) {
42 196
    }
43
}
44