class UserValidator extends AbstractValidator

Properties

protected callable[] $configuration from AbstractValidator
protected array $rules from AbstractValidator
protected $user

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

User|null
getUser()

No description

void
setUser(User $user)

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

User|null getUser()

Return Value

User|null

void setUser(User $user)

Parameters

User $user

Return Value

void