ReportNotDeliveredEvent::getReport()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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