Passed
Branch develop (7f369c)
by Nicolas
04:17
created

CommentRepository::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Repository;
4
5
use App\Entity\Comment;
6
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7
use Symfony\Bridge\Doctrine\RegistryInterface;
8
9
/**
10
 * @method Comment|null find($id, $lockMode = null, $lockVersion = null)
11
 * @method Comment|null findOneBy(array $criteria, array $orderBy = null)
12
 * @method Comment[]    findAll()
13
 * @method Comment[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
14
 */
15
class CommentRepository extends ServiceEntityRepository
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20 3
    public function __construct(RegistryInterface $registry)
21
    {
22 3
        parent::__construct($registry, Comment::class);
23 3
    }
24
}
25