ReportNotDeliveredEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getReport() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Loevgaard\DandomainConsignmentBundle\Event;
6
7
use Loevgaard\DandomainConsignment\Entity\Generated\ReportInterface;
8
use Symfony\Component\EventDispatcher\Event;
9
10
class ReportNotDeliveredEvent extends Event
11
{
12
    const NAME = 'ldc.report.not_delivered';
13
14
    /**
15
     * @var ReportInterface
16
     */
17
    protected $report;
18
19
    public function __construct(ReportInterface $report)
20
    {
21
        $this->report = $report;
22
    }
23
24
    /**
25
     * @return ReportInterface
26
     */
27
    public function getReport(): ReportInterface
28
    {
29
        return $this->report;
30
    }
31
}
32