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

IndexPreUpdateEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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