| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class EntityFieldRegexpFilter extends EntityFieldFilter |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @param mixed $value |
||
| 10 | * @return bool |
||
| 11 | */ |
||
| 12 | public function validate($value) |
||
| 13 | { |
||
| 14 | return (bool) preg_match($this->getEntityFieldValue(), $value); |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | public function getErrorMessage() |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function getSupportedOperator() |
||
| 31 | } |
||
| 32 | } |