| 1 | <?php |
||
| 8 | class IntegerRangeCriteria implements CriteriaInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $min; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | private $max; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param int $min |
||
| 22 | * @param int $max |
||
| 23 | */ |
||
| 24 | 4 | public function __construct($min = null, $max = null) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return int |
||
| 32 | */ |
||
| 33 | 1 | public function getMin() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param int $min |
||
| 40 | */ |
||
| 41 | 2 | public function setMin($min) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @return int |
||
| 48 | */ |
||
| 49 | 1 | public function getMax() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @param int $max |
||
| 56 | */ |
||
| 57 | 2 | public function setMax($max) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 2 | public function shouldBeApplied() |
|
| 69 | } |
||
| 70 |