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

Repository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 2
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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