Completed
Push — development ( 1e8d3e...a97a1c )
by Torben
04:15 queued 25s
created

ModifyCalendarViewVariablesEvent   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
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