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

CommentRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 2
cts 2
cp 1
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
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