EachRule
extends AbstractRule
in package
配列の各要素に対して同じバリデーションルールを適用します
Tags
Table of Contents
Properties
- $message : string
- $elementRule : ValidatorInterface
Methods
- __construct() : mixed
- assert() : void
- validate() : bool
- raiseError() : RuleExceptionInterface
Properties
$message
protected
string
$message
= '配列の要素が不正です。'
$elementRule
private
ValidatorInterface
$elementRule
Methods
__construct()
public
__construct(ValidatorInterface $elementRule[, string $message = '配列の要素が不正です。' ]) : mixed
Parameters
- $elementRule : ValidatorInterface
- $message : string = '配列の要素が不正です。'
assert()
public
assert(mixed $value) : void
Parameters
- $value : mixed
validate()
public
validate(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolraiseError()
protected
raiseError() : RuleExceptionInterface