1 | <?php |
||
9 | class IntegerRangeCriteria implements CriteriaInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | private $min; |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | private $max; |
||
20 | |||
21 | /** |
||
22 | * @param int|null $min |
||
23 | * @param int|null $max |
||
24 | */ |
||
25 | 7 | public function __construct(int $min = null, int $max = null) |
|
30 | |||
31 | /** |
||
32 | * @return int|null |
||
33 | */ |
||
34 | 1 | public function getMin() |
|
38 | |||
39 | /** |
||
40 | * @param int $min |
||
41 | */ |
||
42 | 1 | public function setMin(int $min = null) |
|
46 | |||
47 | /** |
||
48 | * @return int |
||
49 | */ |
||
50 | 1 | public function getMax() |
|
54 | |||
55 | /** |
||
56 | * @param int $max |
||
57 | */ |
||
58 | 1 | public function setMax(int $max = null) |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 5 | public function shouldBeApplied(): bool |
|
70 | } |
||
71 |