Completed
Push — typo3-10-compatibility ( b4f2e1...42d8ec )
by Torben
03:17
created

ModifyCancelRegistrationViewVariablesEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 42
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getVariables() 0 4 1
A setVariables() 0 4 1
A getEventController() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
namespace DERHANSEN\SfEventMgt\Event;
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
use DERHANSEN\SfEventMgt\Controller\EventController;
13
14
/**
15
 * This event is triggered before the cancel registration view is rendered
16
 */
17
final class ModifyCancelRegistrationViewVariablesEvent
18
{
19
    /**
20
     * @var array
21
     */
22
    private $variables;
23
24
    /**
25
     * @var EventController
26
     */
27
    private $eventController;
28
29
    public function __construct(array $variables, EventController $eventController)
30
    {
31
        $this->variables = $variables;
32
        $this->eventController = $eventController;
33
    }
34
35
    /**
36
     * @return array
37
     */
38
    public function getVariables(): array
39
    {
40
        return $this->variables;
41
    }
42
43
    /**
44
     * @param array $variables
45
     */
46
    public function setVariables(array $variables): void
47
    {
48
        $this->variables = $variables;
49
    }
50
51
    /**
52
     * @return EventController
53
     */
54
    public function getEventController(): EventController
55
    {
56
        return $this->eventController;
57
    }
58
}
59