FormValidationFieldError
in package
Used in App\Exception\formValidationException to indicate which fields have failed validation
Table of Contents
- $message : string
- The reason for the failed validation
- $name : string
- The field name which has failed validation
- __construct() : mixed
- getField() : string
- Returns the field name
- getMessage() : string
- Returns the reason
Properties
$message
The reason for the failed validation
private
string
$message
$name
The field name which has failed validation
private
string
$name
Methods
__construct()
public
__construct(string $name, string $message) : mixed
Parameters
- $name : string
- $message : string
Return values
mixed —getField()
Returns the field name
public
getField() : string
Return values
string —getMessage()
Returns the reason
public
getMessage() : string