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

ModifyConfirmRegistrationViewVariablesEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
eloc 5
c 4
b 0
f 0
dl 0
loc 27
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 3 1
A getEventController() 0 3 1
A __construct() 0 5 1
A setVariables() 0 3 1
A getVariables() 0 3 1
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