BookRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * (c) Lukasz D. Tulikowski <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace App\Repository;
13
14
use App\Entity\Book;
15
use App\Interfaces\RepositoryInterface;
16
use Symfony\Bridge\Doctrine\RegistryInterface;
17
18
/**
19
 * {@inheritdoc}
20
 *
21
 * @method Book find($id, $lockMode = null, $lockVersion = null)
22
 * @method Book findOneBy(array $criteria, array $orderBy = null)
23
 * @method Book[] findAll()
24
 */
25
class BookRepository extends AbstractRepository implements RepositoryInterface
26
{
27
    /**
28
     * BookRepository constructor.
29
     *
30
     * @param RegistryInterface $registry
31
     */
32 15
    public function __construct(RegistryInterface $registry)
33
    {
34 15
        parent::__construct($registry, Book::class);
35 15
    }
36
}
37