| 1 | <?php |
||
| 9 | class IntegerCriteria implements CriteriaInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $integer; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param int $integer |
||
| 18 | */ |
||
| 19 | 5 | public function __construct(int $integer = null) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return int|null |
||
| 26 | */ |
||
| 27 | 1 | public function getInteger() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param int $integer |
||
| 34 | */ |
||
| 35 | 1 | public function setInteger(int $integer = null) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | 3 | public function shouldBeApplied(): bool |
|
| 47 | } |
||
| 48 |