Selen

Min
in package
implements ValueValidateInterface

値の最小範囲値をバリデーションするクラス

Table of Contents

Interfaces

ValueValidateInterface

Properties

$messageFormat  : string
$threshold  : float

Methods

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

Properties

$messageFormat

protected string $messageFormat = 'Invalid value. Specify a value of %s or greater.'

$threshold

protected float $threshold

Methods

__construct()

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

public __construct(int|float $threshold) : mixed
Parameters
$threshold : int|float

最小範囲値を指定します

execute()

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

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

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

$result : ValidateResult

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

Return values
ValidateResult

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


        
On this page

Search results