Completed
Push — master ( 5152c1...290c4d )
by Tim
02:12
created

GenericActionAssignmentEvent::getEventName()   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
namespace HDNET\Calendarize\Event;
4
5
final class GenericActionAssignmentEvent
6
{
7
    private $variables = [];
8
9
    /**
10
     * @var string
11
     */
12
    private $className;
13
14
    /**
15
     * @var string
16
     */
17
    private $eventName;
18
19
    public function __construct(array $variables, string $className, string $eventName)
20
    {
21
        $this->variables = $variables;
22
        $this->className = $className;
23
        $this->eventName = $eventName;
24
    }
25
26
    public function getVariables(): array
27
    {
28
        return $this->variables;
29
    }
30
31
    public function getClassName(): string
32
    {
33
        return $this->className;
34
    }
35
36
    public function getEventName(): string
37
    {
38
        return $this->eventName;
39
    }
40
41
    public function setVariables(array $variables): void
42
    {
43
        $this->variables = $variables;
44
    }
45
}
46