Table of Contents
Constants
-
SPECIAL
= '@!#$%^&*(),.?":{}|<>'
Properties
-
$complexity
: int
-
$min
: int
-
$special
: string
-
$message
: string
Methods
-
__construct()
: mixed
-
assert()
: void
-
validate()
: bool
-
raiseError()
: RuleExceptionInterface
SPECIAL
public
mixed
SPECIAL
= '@!#$%^&*(),.?":{}|<>'
$complexity
public
int
$complexity
= 3
$min
public
int
$min
= 8
$special
public
string
$special
= self::SPECIAL
$message
protected
string
$message
= <<<TEXT
パスワードは{{min}}文字以上で
大文字、小文字、数字、特殊文字({{special}})
いずれかを{{complexity}}種類以上使って入力してください。
'password', '123456'など推測されやすい文言は使えません。
TEXT
__construct()
public
__construct([int $min = 8 ][, int $complexity = 3 ][, string $special = self::SPECIAL ][, string $message = << ]) : mixed
Parameters
-
$min
: int
= 8
-
-
$complexity
: int
= 3
-
-
$special
: string
= self::SPECIAL
-
-
$message
: string
= <<
-
assert()
public
assert(mixed $value) : void
Parameters
-
$value
: mixed
-
-
throws
-
Throwable
validate()
public
validate(mixed $value) : bool
Parameters
-
$value
: mixed
-
raiseError()
protected
raiseError() : RuleExceptionInterface