| @@ 26-43 (lines=18) @@ | ||
| 23 | ||
| 24 | namespace EmberDb\Filter\Operator; |
|
| 25 | ||
| 26 | class GreaterThan extends AbstractOperator |
|
| 27 | { |
|
| 28 | public function matches($value) |
|
| 29 | { |
|
| 30 | $isMatch = $this->isNumber($value) && $value > $this->operand; |
|
| 31 | ||
| 32 | return $isMatch; |
|
| 33 | } |
|
| 34 | ||
| 35 | ||
| 36 | ||
| 37 | public function isValid() |
|
| 38 | { |
|
| 39 | $isValid = $this->isNumber($this->operand); |
|
| 40 | ||
| 41 | return $isValid; |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| @@ 26-43 (lines=18) @@ | ||
| 23 | ||
| 24 | namespace EmberDb\Filter\Operator; |
|
| 25 | ||
| 26 | class GreaterThanEqual extends AbstractOperator |
|
| 27 | { |
|
| 28 | public function matches($value) |
|
| 29 | { |
|
| 30 | $isMatch = $this->isNumber($value) && $value >= $this->operand; |
|
| 31 | ||
| 32 | return $isMatch; |
|
| 33 | } |
|
| 34 | ||
| 35 | ||
| 36 | ||
| 37 | public function isValid() |
|
| 38 | { |
|
| 39 | $isValid = $this->isNumber($this->operand); |
|
| 40 | ||
| 41 | return $isValid; |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| @@ 26-43 (lines=18) @@ | ||
| 23 | ||
| 24 | namespace EmberDb\Filter\Operator; |
|
| 25 | ||
| 26 | class LowerThan extends AbstractOperator |
|
| 27 | { |
|
| 28 | public function matches($value) |
|
| 29 | { |
|
| 30 | $isMatch = $this->isNumber($value) && $value < $this->operand; |
|
| 31 | ||
| 32 | return $isMatch; |
|
| 33 | } |
|
| 34 | ||
| 35 | ||
| 36 | ||
| 37 | public function isValid() |
|
| 38 | { |
|
| 39 | $isValid = $this->isNumber($this->operand); |
|
| 40 | ||
| 41 | return $isValid; |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| @@ 26-43 (lines=18) @@ | ||
| 23 | ||
| 24 | namespace EmberDb\Filter\Operator; |
|
| 25 | ||
| 26 | class LowerThanEqual extends AbstractOperator |
|
| 27 | { |
|
| 28 | public function matches($value) |
|
| 29 | { |
|
| 30 | $isMatch = $this->isNumber($value) && $value <= $this->operand; |
|
| 31 | ||
| 32 | return $isMatch; |
|
| 33 | } |
|
| 34 | ||
| 35 | ||
| 36 | ||
| 37 | public function isValid() |
|
| 38 | { |
|
| 39 | $isValid = $this->isNumber($this->operand); |
|
| 40 | ||
| 41 | return $isValid; |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||