UserRepository::__construct()   A
last analyzed

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
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
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\User;
15
use App\Interfaces\RepositoryInterface;
16
use Symfony\Bridge\Doctrine\RegistryInterface;
17
18
/**
19
 * {@inheritdoc}
20
 *
21
 * @method User find($id, $lockMode = null, $lockVersion = null)
22
 * @method User findOneBy(array $criteria, array $orderBy = null)
23
 * @method User[] findAll()
24
 */
25
class UserRepository extends AbstractRepository implements RepositoryInterface
26
{
27
    /**
28
     * UserRepository constructor.
29
     *
30
     * @param RegistryInterface $registry
31
     */
32 51
    public function __construct(RegistryInterface $registry)
33
    {
34 51
        parent::__construct($registry, User::class);
35 51
    }
36
}
37