NoraLib Validation API Documentation

AbstractRule
in package
implements ValidatorInterface, RuleInterface

AbstractYes

Table of Contents

Interfaces

ValidatorInterface
RuleInterface

Properties

$message  : string

Methods

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

Properties

$message

protected string $message = '入力エラーです。'

Methods

__construct()

public __construct([string $message = '入力エラーです。' ]) : mixed
Parameters
$message : string = '入力エラーです。'

assert()

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

validate()

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

        
On this page

Search results