class AbstractValidator implements ValidatorInterface (View source)

The AbstractValidator class.

Methods

boolean
validate(mixed $value)

Validate this value and set error message.

string
getError()

Get error message.

setError(string $error = null)

Method to set property error

setMessage(string $message)

Set error message.

Details

at line line 46
boolean validate(mixed $value)

Validate this value and set error message.

.

Parameters

mixed $value

Return Value

boolean

at line line 72
string getError()

Get error message.

Return Value

string

at line line 84
AbstractValidator setError(string $error = null)

Method to set property error

Parameters

string $error

Return Value

AbstractValidator Return self to support chaining.

at line line 98
AbstractValidator setMessage(string $message)

Set error message.

Parameters

string $message

Return Value

AbstractValidator