1 | <?php |
||
8 | class NumberCriteria implements CriteriaInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var float |
||
12 | */ |
||
13 | private $number; |
||
14 | |||
15 | /** |
||
16 | * @param float $number |
||
17 | */ |
||
18 | 9 | public function __construct($number = null) |
|
22 | |||
23 | /** |
||
24 | * @return float |
||
25 | */ |
||
26 | 3 | public function getNumber() |
|
27 | { |
||
28 | 3 | return $this->number; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param float $number |
||
33 | */ |
||
34 | 3 | public function setNumber($number) |
|
35 | { |
||
36 | 3 | $this->number = (float) $number; |
|
37 | 3 | } |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 6 | public function shouldBeApplied() |
|
47 | } |
||
48 |