Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class EntityFieldEqualFilter extends EntityFieldFilter |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @param mixed $value |
||
10 | * @return bool |
||
11 | */ |
||
12 | protected function validate($value) |
||
13 | { |
||
14 | return $value === $this->getEntityFieldValue(); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | public function getErrorMessage() |
||
21 | { |
||
22 | return sprintf('The value of %s is not equal to %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
||
23 | } |
||
24 | |||
25 | public function getSupportedOperator() |
||
28 | } |
||
29 | } |