MultipleErrors
extends InvalidEmail
in package
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- addReason() : void
- code() : int
- Code for user land to act upon.
- description() : string
- Short description of the result, human readable.
- getReasons() : array<string|int, Reason>
- isInvalid() : bool
- Is validation result invalid? Usually the inverse of isValid()
- isValid() : bool
- Is validation result valid?
- reason() : Reason
Properties
$reason
protected
Reason
$reason
$reasons
private
array<string|int, Reason>
$reasons
= []
$token
private
mixed
$token
Methods
__construct()
public
__construct() : mixed
addReason()
public
addReason(Reason $reason) : void
Parameters
- $reason : Reason
code()
Code for user land to act upon.
public
code() : int
Return values
intdescription()
Short description of the result, human readable.
public
description() : string
Return values
stringgetReasons()
public
getReasons() : array<string|int, Reason>
Return values
array<string|int, Reason>isInvalid()
Is validation result invalid? Usually the inverse of isValid()
public
isInvalid() : bool
Return values
boolisValid()
Is validation result valid?
public
isValid() : bool
Return values
boolreason()
public
reason() : Reason