@@ 18-35 (lines=18) @@ | ||
15 | * |
|
16 | * @author Karel Osorio Ramírez <[email protected]> |
|
17 | */ |
|
18 | class GreaterThan extends RelationalOperator |
|
19 | { |
|
20 | /** |
|
21 | * {@inheritdoc} |
|
22 | */ |
|
23 | public function evaluate($value) |
|
24 | { |
|
25 | return $this->comparison($value) === 1; |
|
26 | } |
|
27 | ||
28 | /** |
|
29 | * {@inheritdoc} |
|
30 | */ |
|
31 | public function not() |
|
32 | { |
|
33 | return new LessThanEqual($this->left(), $this->right()); |
|
34 | } |
|
35 | } |
|
36 |
@@ 18-35 (lines=18) @@ | ||
15 | * |
|
16 | * @author Karel Osorio Ramírez <[email protected]> |
|
17 | */ |
|
18 | class LessThanEqual extends RelationalOperator |
|
19 | { |
|
20 | /** |
|
21 | * {@inheritdoc} |
|
22 | */ |
|
23 | public function evaluate($value) |
|
24 | { |
|
25 | return $this->comparison($value) <= 0; |
|
26 | } |
|
27 | ||
28 | /** |
|
29 | * {@inheritdoc} |
|
30 | */ |
|
31 | public function not() |
|
32 | { |
|
33 | return new GreaterThan($this->left(), $this->right()); |
|
34 | } |
|
35 | } |
|
36 |