Selen

MinSize
in package
implements ValueValidateInterface

配列の最小要素数をバリデーションするクラス

Table of Contents

Interfaces

ValueValidateInterface

Properties

$messageFormat  : string
$size  : int

Methods

__construct()  : mixed
新しいインスタンスを構築します
execute()  : ValidateResult
バリデーションを実行します

Properties

$messageFormat

protected string $messageFormat = 'Invalid value. Please specify an array of %s or more elements.'

Methods

__construct()

新しいインスタンスを構築します

public __construct(int $size) : mixed
Parameters
$size : int

最小要素数を指定します

execute()

バリデーションを実行します

public execute(mixed $value, ValidateResult $result) : ValidateResult
Parameters
$value : mixed

バリデーション対象の値を渡します

$result : ValidateResult

バリデーション結果を格納するインスタンスを渡します

Return values
ValidateResult

バリデーション結果を返します


        
On this page

Search results