Passed
Push — 5.x ( e1d7c2...0f68be )
by Torben
05:28
created

AfterRegistrationCancelledEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
namespace DERHANSEN\SfEventMgt\Event;
13
14
use DERHANSEN\SfEventMgt\Controller\EventController;
15
use DERHANSEN\SfEventMgt\Domain\Model\Registration;
16
17
/**
18
 * This event is triggered after a registration has been cancelled
19
 */
20
final class AfterRegistrationCancelledEvent
21
{
22
    /**
23
     * @var Registration
24
     */
25
    private $registration;
26
27
    /**
28
     * @var EventController
29
     */
30
    private $eventController;
31
32
    public function __construct(Registration $registration, EventController $eventController)
33
    {
34
        $this->registration = $registration;
35
        $this->eventController = $eventController;
36
    }
37
38
    public function getRegistration(): Registration
39
    {
40
        return $this->registration;
41
    }
42
43
    public function getEventController(): EventController
44
    {
45
        return $this->eventController;
46
    }
47
}
48