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