class UserValidator extends AbstractValidator

Properties

protected array $rules from AbstractValidator
protected Factory $validator from AbstractValidator
protected Dispatcher $events from AbstractValidator
protected TranslatorInterface $translator from AbstractValidator
protected User $user

Methods

__construct(Factory $validator, Dispatcher $events, TranslatorInterface $translator)

No description

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)

<p>Make a new validator instance for this model.</p>

getUser()

No description

setUser(User $user)

No description

Details

__construct(Factory $validator, Dispatcher $events, TranslatorInterface $translator)

Parameters

Factory $validator
Dispatcher $events
TranslatorInterface $translator

assertValid(array $attributes)

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

Parameters

array $attributes

protected array getRules()

Return Value

array

protected array getMessages()

Return Value

array

protected Validator makeValidator(array $attributes)

<p>Make a new validator instance for this model.</p>

Parameters

array $attributes

Return Value

Validator

User getUser()

Return Value

User

setUser(User $user)

Parameters

User $user