Completed
Pull Request — master (#42)
by Eric
11:17
created

Repository::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Lug package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Lug\Component\Resource\Repository\Doctrine\ORM;
13
14
use Doctrine\ORM\EntityManagerInterface;
15
use Doctrine\ORM\EntityRepository;
16
use Doctrine\ORM\Mapping\ClassMetadata;
17
use Lug\Component\Resource\Model\ResourceInterface;
18
use Lug\Component\Resource\Repository\RepositoryInterface;
19
20
/**
21
 * @author GeLo <[email protected]>
22
 */
23
class Repository extends EntityRepository implements RepositoryInterface
24
{
25
    use RepositoryTrait {
26
        __construct as private constructTrait;
27
    }
28
29
    /**
30
     * @param EntityManagerInterface $em
31
     * @param ClassMetadata          $class
32
     * @param ResourceInterface      $resource
33
     */
34 22
    public function __construct(EntityManagerInterface $em, ClassMetadata $class, ResourceInterface $resource)
35
    {
36 22
        $this->constructTrait($em, $class, $resource);
37 22
    }
38
}
39