RegExpValidator
extends Validator
Table of Contents
Methods
-
__construct()
: mixed
-
validate()
: string|bool|EntityError
__construct()
public
__construct(string $pattern[, null $errorPhrase = null ]) : mixed
Parameters
-
$pattern
: string
-
-
$errorPhrase
: null
= null
-
-
throws
-
ArgumentTypeException
validate()
public
validate(mixed $value, mixed $primary, array<string|int, mixed> $row, Field $field) : string|bool|EntityError
Parameters
-
$value
: mixed
-
-
$primary
: mixed
-
-
$row
: array<string|int, mixed>
-
-
$field
: Field
-