Completed
Push — master ( 757091...704cf7 )
by Tim
02:40
created

IndexPreUpdateEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getNeededItems() 0 4 1
A setNeededItems() 0 4 1
A getTableName() 0 4 1
A getUid() 0 4 1
1
<?php
2
3
namespace HDNET\Calendarize\Event;
4
5
final class IndexPreUpdateEvent
6
{
7
    /**
8
     * @var array
9
     */
10
    private $neededItems;
11
12
    /**
13
     * @var string
14
     */
15
    private $tableName;
16
17
    /**
18
     * @var int
19
     */
20
    private $uid;
21
22
    public function __construct(array $neededItems, string $tableName, int $uid)
23
    {
24
        $this->neededItems = $neededItems;
25
        $this->tableName = $tableName;
26
        $this->uid = $uid;
27
    }
28
29
    public function getNeededItems(): array
30
    {
31
        return $this->neededItems;
32
    }
33
34
    public function setNeededItems(array $neededItems): void
35
    {
36
        $this->neededItems = $neededItems;
37
    }
38
39
    public function getTableName(): string
40
    {
41
        return $this->tableName;
42
    }
43
44
    public function getUid(): int
45
    {
46
        return $this->uid;
47
    }
48
}
49