\ManaPHP\ValidatingValidatorInterface

Summary

Methods
Constants
getLocale()
setLocale()
createError()
validate()
validateModel()
validateValue()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getLocale()

getLocale() : string

Returns

string

setLocale()

setLocale(string  $locale) : static

Parameters

string $locale

Returns

static

createError()

createError(string  $validate, string  $field, mixed  $parameter = null) : string

Parameters

string $validate
string $field
mixed $parameter

Returns

string

validate()

validate(string  $field, \ManaPHP\Data\Model|mixed  $model, array|string|\Closure  $rules) : mixed

Parameters

string $field
\ManaPHP\Data\Model|mixed $model
array|string|\Closure $rules

Returns

mixed

validateModel()

validateModel(string  $field, \ManaPHP\Data\Model  $model, array|string|\Closure  $rules) : mixed

Parameters

string $field
\ManaPHP\Data\Model $model
array|string|\Closure $rules

Throws

\ManaPHP\Validating\Validator\ValidateFailedException

Returns

mixed

validateValue()

validateValue(string  $field, mixed  $value, array|string|\Closure  $rules) : mixed

Parameters

string $field
mixed $value
array|string|\Closure $rules

Returns

mixed