Completed
Push — master ( 70dfe1...a97a1c )
by Torben
04:18
created

ModifyCalendarViewVariablesEvent::getVariables()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
16
/**
17
 * This event is triggered before the calendar view is rendered
18
 */
19
final class ModifyCalendarViewVariablesEvent
20
{
21
    /**
22
     * @var array
23
     */
24
    private $variables;
25
26
    /**
27
     * @var EventController
28
     */
29
    private $eventController;
30
31
    public function __construct(array $variables, EventController $eventController)
32
    {
33
        $this->variables = $variables;
34
        $this->eventController = $eventController;
35
    }
36
37
    /**
38
     * @return array
39
     */
40
    public function getVariables(): array
41
    {
42
        return $this->variables;
43
    }
44
45
    /**
46
     * @param array $variables
47
     */
48
    public function setVariables(array $variables): void
49
    {
50
        $this->variables = $variables;
51
    }
52
53
    /**
54
     * @return EventController
55
     */
56
    public function getEventController(): EventController
57
    {
58
        return $this->eventController;
59
    }
60
}
61