Completed
Pull Request — master (#68)
by Daniel
02:25
created

DateFilterData::getApply()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
nc 1
cc 1
eloc 2
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\Filter;
6
7
use Psi\Component\Grid\FilterDataInterface;
8
9
class DateFilterData implements FilterDataInterface
10
{
11
    private $value;
12
    private $apply;
13
    private $comparator;
14
15
    public function __construct($apply, $comparator = null, $value = null)
16
    {
17
        $this->value = $value;
18
        $this->apply = $apply;
19
        $this->comparator = $comparator;
20
    }
21
22
    public function getValue()
23
    {
24
        return $this->value;
25
    }
26
27
    public function getComparator() 
28
    {
29
        return $this->comparator;
30
    }
31
32
    public function getApply() 
33
    {
34
        return $this->apply;
35
    }
36
37
    public function isApplicable(): bool
38
    {
39
        return $this->apply;
40
    }
41
}
42