class Validate (View source)

Methods

void
__construct(bool $fails, string $message, array $corrupted_fields)

Validate constructor.

bool
fails()

Allows to know the status of the validation

array
getCorruptedFields()

Informs about fields that could not be validated

array
getFailsRules()

The error message on the last commit

string
getLastMessage()

The error message on the last commit

array
getMessages()

The error message on the last commit

throwError()

Throw error

Details

void __construct(bool $fails, string $message, array $corrupted_fields)

Validate constructor.

Parameters

bool $fails
string $message
array $corrupted_fields

Return Value

void

bool fails()

Allows to know the status of the validation

Return Value

bool

array getCorruptedFields()

Informs about fields that could not be validated

Return Value

array

array getFailsRules()

The error message on the last commit

Return Value

array

string getLastMessage()

The error message on the last commit

Return Value

string

array getMessages()

The error message on the last commit

Return Value

array

throwError()

Throw error

Exceptions

ValidationException