Passed
Branch develop (4ef38d)
by BENARD
03:50
created

AbstractCoreProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getNbPostDay() 0 3 1
A __construct() 0 3 1
A getData() 0 3 1
1
<?php
2
3
namespace VideoGamesRecords\DwhBundle\DataProvider\Strategy\Core;
4
5
use DateTime;
6
use Doctrine\ORM\EntityManagerInterface;
7
use VideoGamesRecords\DwhBundle\Contracts\DataProvider\CoreProviderInterface;
8
use VideoGamesRecords\DwhBundle\Contracts\DwhInterface;
9
10
class AbstractCoreProvider implements DwhInterface, CoreProviderInterface
11
{
12
    protected EntityManagerInterface $em;
13
14
    public function __construct(EntityManagerInterface $em)
15
    {
16
        $this->em = $em;
17
    }
18
19
    /**
20
     * @return array
21
     */
22
    public function getData(): array
23
    {
24
        return array();
25
    }
26
27
    /**
28
     * @param DateTime $date1
29
     * @param DateTime $date2
30
     * @return array
31
     */
32
    public function getNbPostDay(DateTime $date1, DateTime $date2): array
33
    {
34
        return array();
35
    }
36
}
37
38