Completed
Pull Request — master (#21)
by Valentyn
01:42
created

GenreRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace App\Repository;
5
6
use App\Entity\Genre;
7
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
8
use Symfony\Bridge\Doctrine\RegistryInterface;
9
10
/**
11
 * @method Genre|null find($id, $lockMode = null, $lockVersion = null)
12
 * @method Genre|null findOneBy(array $criteria, array $orderBy = null)
13
 * @method Genre[]    findAll()
14
 * @method Genre[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
15
 */
16
class GenreRepository extends ServiceEntityRepository
17
{
18 5
    public function __construct(RegistryInterface $registry)
19
    {
20 5
        parent::__construct($registry, Genre::class);
21 5
    }
22
}
23