Completed
Push — typo3-10-compatibility ( b4f2e1...42d8ec )
by Torben
03:17
created

AfterRegistrationSavedEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRegistration() 0 4 1
A getEventController() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
namespace DERHANSEN\SfEventMgt\Event;
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
use DERHANSEN\SfEventMgt\Controller\EventController;
13
use DERHANSEN\SfEventMgt\Domain\Model\Registration;
14
15
/**
16
 * This event is triggered after a registration has been persisted
17
 */
18
final class AfterRegistrationSavedEvent
19
{
20
    /**
21
     * @var Registration
22
     */
23
    private $registration;
24
25
    /**
26
     * @var EventController
27
     */
28
    private $eventController;
29
30
    public function __construct(Registration $registration, EventController $eventController)
31
    {
32
        $this->registration = $registration;
33
        $this->eventController = $eventController;
34
    }
35
36
    /**
37
     * @return Registration
38
     */
39
    public function getRegistration(): Registration
40
    {
41
        return $this->registration;
42
    }
43
44
    /**
45
     * @return EventController
46
     */
47
    public function getEventController(): EventController
48
    {
49
        return $this->eventController;
50
    }
51
}
52