AfterRegistrationSavedEvent::getEventController()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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 persisted
19
 */
20
final class AfterRegistrationSavedEvent
21
{
22
    public function __construct(
23
        private readonly Registration $registration,
24
        private readonly EventController $eventController
25
    ) {
26
    }
27
28
    public function getRegistration(): Registration
29
    {
30
        return $this->registration;
31
    }
32
33
    public function getEventController(): EventController
34
    {
35
        return $this->eventController;
36
    }
37
}
38