ValidatorInterface
in
Table of Contents
Methods
- validate() : array<string|int, mixed>|bool
- Validates the key and it's value based on the config.
Methods
validate()
Validates the key and it's value based on the config.
public
validate(string $key, mixed $value, array<string|int, mixed> $config, array<string|int, mixed> $data[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>|bool
Parameters
- $key : string
- $value : mixed
- $config : array<string|int, mixed>
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = []
Return values
array<string|int, mixed>|bool —Returns true on success or array of errors.