Passed
Push — develop ( 04f018...e920eb )
by BENARD
04:15
created

AbstractRankingHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 2 1
A __construct() 0 4 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Handler\Ranking;
4
5
use Doctrine\ORM\EntityManagerInterface;
6
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
7
use VideoGamesRecords\CoreBundle\Contracts\Ranking\RankingCommandInterface;
8
9
abstract class AbstractRankingHandler implements RankingCommandInterface
10
{
11
    protected EntityManagerInterface $em;
12
    protected EventDispatcherInterface $eventDispatcher;
13
14
    public function __construct(EntityManagerInterface $em, EventDispatcherInterface $eventDispatcher)
15
    {
16
        $this->em = $em;
17
        $this->eventDispatcher = $eventDispatcher;
18
    }
19
20
    public function handle($mixed): void
21
    {
22
23
    }
24
}
25