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

GenericActionAssignmentEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 41
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getVariables() 0 4 1
A getClassName() 0 4 1
A getEventName() 0 4 1
A setVariables() 0 4 1
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