Selen

Type
in package
implements ValueValidateInterface

Table of Contents

Interfaces

ValueValidateInterface

Properties

$messageFormat  : string
$names  : array<string|int, string>

Methods

__construct()  : mixed
execute()  : ValidateResult
バリデーションを実行します

Properties

$messageFormat

protected string $messageFormat = 'Invalid type. expected type %s.'

$names

private array<string|int, string> $names

Methods

__construct()

public __construct(string ...$names) : mixed
Parameters
$names : string

execute()

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

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

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

$result : ValidateResult

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

Return values
ValidateResult

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


        
On this page

Search results