Regexp
Constrains a string property’s value against a regular expression.
Backed by Quiote\Validator\RegexValidator.
Synopsis
Section titled “Synopsis”final class Regexp
| Since | 1.0.0 |
| Source | Request/Attribute/Constraint/Regexp.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$match | bool | readonly. |
$message | ?``string | readonly. |
$pattern | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $pattern, bool $match = true, ?string $message = null): mixed
| Parameter | Type | Description |
|---|---|---|
$pattern | string | |
$match | bool | |
$message | ?``string |
Returns mixed