Passed
Pull Request — master (#1)
by Flavien
06:34 queued 03:23
created

TransformerWithEntityAbstract   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEntityManager() 0 4 1
1
<?php
2
3
namespace QualityCode\TransformAndLoadBundle\Import\Transformer;
4
5
use Doctrine\ORM\EntityManagerInterface;
6
7
/**
8
 * Description of TransformerWithEntityAbstract.
9
 *
10
 * @author fmetivier
11
 */
12
abstract class TransformerWithEntityAbstract
13
{
14
    /**
15
     * @var EntityManagerInterface
16
     */
17
    protected $entityManager;
18
19
    /**
20
     * @param EntityManagerInterface $entityManager
21
     */
22
    public function __construct(EntityManagerInterface $entityManager)
23
    {
24
        $this->entityManager = $entityManager;
25
    }
26
27
    /**
28
     * @return EntityManagerInterface
29
     */
30
    final public function getEntityManager()
31
    {
32
        return $this->entityManager;
33
    }
34
}
35