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

IndexRepositoryFindBySearchEvent::setStartDate()   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 1
1
<?php
2
3
namespace HDNET\Calendarize\Event;
4
5
final class IndexRepositoryFindBySearchEvent
6
{
7
    /**
8
     * @var array
9
     */
10
    private $indexIds;
11
12
    private $startDate;
13
    private $endDate;
14
    private $customSearch;
15
16
    /**
17
     * @var array
18
     */
19
    private $indexTypes;
20
21
    /**
22
     * @var bool
23
     */
24
    private $emptyPreResult;
25
26
    public function __construct(array $indexIds, $startDate, $endDate, $customSearch, array $indexTypes, bool $emptyPreResult)
27
    {
28
        $this->indexIds = $indexIds;
29
        $this->startDate = $startDate;
30
        $this->endDate = $endDate;
31
        $this->customSearch = $customSearch;
32
        $this->indexTypes = $indexTypes;
33
        $this->emptyPreResult = $emptyPreResult;
34
    }
35
36
    public function getIndexIds(): array
37
    {
38
        return $this->indexIds;
39
    }
40
41
    public function getStartDate()
42
    {
43
        return $this->startDate;
44
    }
45
46
    public function getEndDate()
47
    {
48
        return $this->endDate;
49
    }
50
51
    public function getCustomSearch()
52
    {
53
        return $this->customSearch;
54
    }
55
56
    public function getIndexTypes(): array
57
    {
58
        return $this->indexTypes;
59
    }
60
61
    public function isEmptyPreResult(): bool
62
    {
63
        return $this->emptyPreResult;
64
    }
65
66
    public function setIndexIds(array $indexIds): void
67
    {
68
        $this->indexIds = $indexIds;
69
    }
70
71
    public function setStartDate($startDate): void
72
    {
73
        $this->startDate = $startDate;
74
    }
75
76
    public function setEndDate($endDate): void
77
    {
78
        $this->endDate = $endDate;
79
    }
80
81
    public function setEmptyPreResult(bool $emptyPreResult): void
82
    {
83
        $this->emptyPreResult = $emptyPreResult;
84
    }
85
}
86