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

getRequest()   A

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 Psr\Http\Message\ServerRequestInterface;
16
17
/**
18
 * This event is triggered before the confirm registration view is rendered
19
 */
20
final class ModifyConfirmRegistrationViewVariablesEvent
21
{
22
    public function __construct(
23
        private array $variables,
24
        private readonly EventController $eventController,
25
        private readonly ServerRequestInterface $request
26
    ) {
27
    }
28
29
    public function getVariables(): array
30
    {
31
        return $this->variables;
32
    }
33
34
    public function setVariables(array $variables): void
35
    {
36
        $this->variables = $variables;
37
    }
38
39
    public function getEventController(): EventController
40
    {
41
        return $this->eventController;
42
    }
43
44
    public function getRequest(): ServerRequestInterface
45
    {
46
        return $this->request;
47
    }
48
}
49