AbstractTableManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

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