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

EventPidCheckFailedEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 14
rs 10
c 0
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\Domain\Model\Event;
15
use Psr\Http\Message\ServerRequestInterface;
16
17
/**
18
 * This event is triggered when the event PID check failed
19
 */
20
final readonly class EventPidCheckFailedEvent
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 20 at column 6
Loading history...
21
{
22
    public function __construct(
23
        private Event $event,
24
        private ServerRequestInterface $request
25
    ) {
26
    }
27
28
    public function getEvent(): Event
29
    {
30
        return $this->event;
31
    }
32
33
    public function getRequest(): ServerRequestInterface
34
    {
35
        return $this->request;
36
    }
37
}
38