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

IndexRepositoryTimeSlotEvent::getQuery()   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
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
6
7
final class IndexRepositoryTimeSlotEvent
8
{
9
    /**
10
     * @var array
11
     */
12
    private $constraints;
13
14
    /**
15
     * @var QueryInterface
16
     */
17
    private $query;
18
19
    public function __construct(array $constraints, QueryInterface $query)
20
    {
21
        $this->constraints = $constraints;
22
        $this->query = $query;
23
    }
24
25
    public function getConstraints(): array
26
    {
27
        return $this->constraints;
28
    }
29
30
    public function getQuery(): QueryInterface
31
    {
32
        return $this->query;
33
    }
34
35
    public function setConstraints(array $constraints): void
36
    {
37
        $this->constraints = $constraints;
38
    }
39
}
40