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

IndexRepositoryTimeSlotEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 33
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getConstraints() 0 4 1
A getQuery() 0 4 1
A setConstraints() 0 4 1
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