@@ 10-30 (lines=21) @@ | ||
7 | use Psi\Component\Grid\FilterDataInterface; |
|
8 | use Psi\Component\ObjectAgent\Query\Comparison; |
|
9 | ||
10 | class NumberFilterData implements FilterDataInterface |
|
11 | { |
|
12 | private $comparator; |
|
13 | private $value; |
|
14 | ||
15 | public function __construct(string $comparator = null, $value = null) |
|
16 | { |
|
17 | $this->comparator = $comparator; |
|
18 | $this->value = $value; |
|
19 | } |
|
20 | ||
21 | public function getComparator() |
|
22 | { |
|
23 | return $this->comparator; |
|
24 | } |
|
25 | ||
26 | public function getValue() |
|
27 | { |
|
28 | return $this->value; |
|
29 | } |
|
30 | } |
|
31 |
@@ 10-30 (lines=21) @@ | ||
7 | use Psi\Component\Grid\FilterDataInterface; |
|
8 | use Psi\Component\ObjectAgent\Query\Comparison; |
|
9 | ||
10 | class StringFilterData implements FilterDataInterface |
|
11 | { |
|
12 | private $comparator; |
|
13 | private $value; |
|
14 | ||
15 | public function __construct(string $comparator = null, string $value = null) |
|
16 | { |
|
17 | $this->comparator = $comparator; |
|
18 | $this->value = $value; |
|
19 | } |
|
20 | ||
21 | public function getComparator() |
|
22 | { |
|
23 | return $this->comparator; |
|
24 | } |
|
25 | ||
26 | public function getValue() |
|
27 | { |
|
28 | return $this->value; |
|
29 | } |
|
30 | } |
|
31 |