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::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 1
cts 1
cp 1
cc 1
nc 1
nop 2
crap 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