Selen

Enum
in package
implements ValueValidateInterface

Table of Contents

Interfaces

ValueValidateInterface

Properties

$messageFormat  : string
$allowValues  : mixed

Methods

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

Properties

$messageFormat

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

$allowValues

private mixed $allowValues

Methods

__construct()

public __construct(string|float|int|bool|null ...$values) : mixed
Parameters
$values : string|float|int|bool|null

execute()

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

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

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

$result : ValidateResult

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

Return values
ValidateResult

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

surround()

private surround(string|float|int|bool|null $value) : string
Parameters
$value : string|float|int|bool|null
Return values
string

        
On this page

Search results