GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

DoctrineEventsDispatcher   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 13
rs 10
ccs 4
cts 4
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dsantang\DomainEventsDoctrine\Dispatcher;
6
7
use Dsantang\DomainEventsDoctrine\Releaser;
8
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
9
10
abstract class DoctrineEventsDispatcher
11
{
12
    protected Releaser $releaser;
13
14
    protected EventDispatcherInterface $dispatcher;
15
16
    public function __construct(Releaser $releaser, EventDispatcherInterface $dispatcher)
17
    {
18 1
        $this->releaser   = $releaser;
19
        $this->dispatcher = $dispatcher;
20 1
    }
21 1
22 1
    abstract public function postFlush(): void;
23
}
24