Table of Contents
Properties
-
$max
: int|null
-
$min
: int
-
$message
: string
Methods
-
__construct()
: mixed
-
assert()
: void
-
validate()
: bool
-
raiseError()
: RuleExceptionInterface
$max
read-only
public
int|null
$max
= null
$min
read-only
public
int
$min
$message
protected
string
$message
= "{{min}}文字以上{{max}}文字以下で入力してください。"
__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
-
-
throws
-
Throwable
validate()
public
validate(mixed $value) : bool
Parameters
-
$value
: mixed
-
raiseError()
protected
raiseError() : RuleExceptionInterface