Completed
Pull Request — master (#5)
by Daniel
08:08 queued 06:02
created

StringFilterData::getValue()   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
cc 1
eloc 2
nc 1
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 StringFilterData implements FilterDataInterface
10
{
11
    private $comparator;
12
    private $value;
13
14
    public function __construct(string $comparator = null, string $value = null)
15
    {
16
        $this->comparator = $comparator;
17
        $this->value = $value;
18
    }
19
20
    public function getComparator()
21
    {
22
        return $this->comparator;
23
    }
24
25
    public function getValue()
26
    {
27
        return $this->value;
28
    }
29
}
30