| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class RegexValidator extends ValidatorHasNotNull { |
||
| 15 | protected $ref; |
||
| 16 | protected $match; |
||
| 17 | |||
| 18 | 1 | public function __construct(){ |
|
| 19 | 1 | $this->message="This value is not valid"; |
|
| 20 | 1 | $this->match=true; |
|
| 21 | 1 | } |
|
| 22 | |||
| 23 | 3 | public function validate($value) { |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritDoc} |
||
| 31 | * @see \Ubiquity\contents\validation\validators\Validator::getParameters() |
||
| 32 | */ |
||
| 33 | 3 | public function getParameters(): array { |
|
| 35 | } |
||
| 36 | } |
||
| 38 |