Validate
class Validate (View source)
Methods
void
__construct(bool $fails, string|null $message = null, 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
void
throwError()
Throw error
Details
void
__construct(bool $fails, string|null $message = null, 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
void
throwError()
Throw error