class EqualsValidator extends AbstractValidator (View source)

The EqualsValidator 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.

__construct(mixed $compare, bool $strict = false)

Class init.

Details

boolean validate(mixed $value)

Validate this value and set error message.

.

Parameters

mixed $value

Return Value

boolean

string getError()

Get error message.

Return Value

string

AbstractValidator setError(string $error = null)

Method to set property error

Parameters

string $error

Return Value

AbstractValidator Return self to support chaining.

AbstractValidator setMessage(string $message)

Set error message.

Parameters

string $message

Return Value

AbstractValidator

at line line 40
__construct(mixed $compare, bool $strict = false)

Class init.

Parameters

mixed $compare
bool $strict