NoraLib Validation API Documentation

LengthRule extends AbstractRule
in package

Table of Contents

Properties

$max  : int|null
$min  : int
$message  : string

Methods

__construct()  : mixed
assert()  : void
validate()  : bool
raiseError()  : RuleExceptionInterface

Properties

$message

protected string $message = "{{min}}文字以上{{max}}文字以下で入力してください。"

Methods

__construct()

public __construct(int $min[, int|null $max = null ][, string $message = "{{min}}文字以上{{max}}文字以下で入力してください。" ]) : mixed
Parameters
$min : int
$max : int|null = null
$message : string = "{{min}}文字以上{{max}}文字以下で入力してください。"

assert()

public assert(mixed $value) : void
Parameters
$value : mixed
Tags
throws
Throwable

validate()

public validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results