class SettingsValidator extends AbstractValidator

Properties

protected callable[] $configuration from AbstractValidator
protected array $rules from AbstractValidator
protected $globalRules <p>These rules apply to all attributes.</p>

Methods

__construct(Factory $validator, TranslatorInterface $translator)

No description

void
addConfiguration(callable $callable)

No description

void
assertValid(array $attributes)

<p>Throw an exception if a model is not valid.</p>

array
getRules()

No description

array
getMessages()

No description

Validator
makeValidator(array $attributes)

No description

Details

__construct(Factory $validator, TranslatorInterface $translator)

Parameters

Factory $validator
TranslatorInterface $translator

void addConfiguration(callable $callable)

Parameters

callable $callable

Return Value

void

void assertValid(array $attributes)

<p>Throw an exception if a model is not valid.</p>

Parameters

array $attributes

Return Value

void

protected array getRules()

Return Value

array

protected array getMessages()

Return Value

array

protected Validator makeValidator(array $attributes)

Parameters

array $attributes

Return Value

Validator