AbstractTableManager::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VideoGamesRecords\DwhBundle\Manager\Strategy\Table;
6
7
use Doctrine\ORM\EntityManager;
8
use VideoGamesRecords\DwhBundle\Contracts\DataProvider\CoreProviderInterface;
9
use VideoGamesRecords\DwhBundle\Contracts\DwhInterface;
10
11
abstract class AbstractTableManager implements DwhInterface
12
{
13
    protected EntityManager $em;
14
    protected CoreProviderInterface $provider;
15
16
    public function __construct(EntityManager $em)
17
    {
18
        $this->em = $em;
19
    }
20
21
    public function setProvider(CoreProviderInterface $provider): void
22
    {
23
        $this->provider = $provider;
24
    }
25
}
26