Validator
class Validator implements Validator (View source)
Methods
void __construct(TranslatorInterface $translator, array $data, array $rules, array $messages = array(), array $customAttributes = array()) Create a new Validator instance. array parseData(array $data) Parse the data array. $this after(callable|string $callback) After an after validation callback. void sometimes(string $attribute, string|array $rules, callable $callback) Add conditions to a given field base