Regex
in package
implements
ValueValidateInterface
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Interfaces
- ValueValidateInterface
- ValidatorのAttributeとして識別するためのインターフェース
Properties
- $messageFormat : string
- $pattern : string
Methods
- __construct() : mixed
- execute() : ValidateResult
- 検証を実行します
Properties
$messageFormat
protected
string
$messageFormat
= 'Invalid value. expected value %s.'
$pattern
protected
string
$pattern
Methods
__construct()
public
__construct(string $pattern) : mixed
Parameters
- $pattern : string
execute()
検証を実行します
public
execute(mixed $value, ValidateResult $result) : ValidateResult
Parameters
- $value : mixed
-
検証する値を渡します
- $result : ValidateResult
-
検証結果を格納するオブジェクトを渡します