Passed
Push — main ( 52a7ec...5410b3 )
by Torben
03:32
created

AfterRegistrationCancelledEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 16
rs 10
c 1
b 0
f 0
wmc 3
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
use Psr\Http\Message\ServerRequestInterface;
17
18
/**
19
 * This event is triggered after a registration has been cancelled
20
 */
21
final readonly class AfterRegistrationCancelledEvent
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 21 at column 6
Loading history...
22
{
23
    public function __construct(
24
        private Registration $registration,
25
        private EventController $eventController,
26
        private ServerRequestInterface $request
27
    ) {
28
    }
29
30
    public function getRegistration(): Registration
31
    {
32
        return $this->registration;
33
    }
34
35
    public function getEventController(): EventController
36
    {
37
        return $this->eventController;
38
    }
39
40
    public function getRequest(): ServerRequestInterface
41
    {
42
        return $this->request;
43
    }
44
}
45