\app\framework\Component\ValidationValidatorInterface

An Interface for Validators

Summary

Methods
Constants
getName()
validate()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getName()

getName() : string

Get validator name, eg: email

Returns

string

validate()

validate(mixed  $value, array  $params = array(), boolean|true  $throw = true) : boolean|string

Validate given value, using optional parameters and either throw an exception or return a boolean

Parameters

mixed $value
array $params
boolean|true $throw

Throws

\app\framework\Component\Validation\ValidationException

Returns

boolean|string