Passed
Push — master ( cb03cc...7adcbb )
by Damien
14:28
created

DoctrineService::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace DH\Auditor\Provider\Doctrine\Service;
4
5
use DH\Auditor\Provider\Service\AbstractService;
6
use Doctrine\ORM\EntityManagerInterface;
7
8
abstract class DoctrineService extends AbstractService
9
{
10
    /**
11
     * @var EntityManagerInterface
12
     */
13
    private $entityManager;
14
15
    public function __construct(string $name, EntityManagerInterface $entityManager)
16
    {
17
        parent::__construct($name);
18
19
        $this->entityManager = $entityManager;
20
    }
21
22
    public function getEntityManager(): EntityManagerInterface
23
    {
24
        return $this->entityManager;
25
    }
26
}
27