Mental Space

UserValidator
in package

FinalYes

Service.

Table of Contents

Properties

$repository  : UserRepository
$validationFactory  : ValidationFactory

Methods

__construct()  : mixed
The constructor.
validateUser()  : void
Validate new user.
validateUserUpdate()  : void
Validate update.
createValidator()  : Validator
Create validator.

Properties

Methods

validateUser()

Validate new user.

public validateUser(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

The data

Tags
throws
ValidationException

validateUserUpdate()

Validate update.

public validateUserUpdate(int $userId, array<string|int, mixed> $data) : void
Parameters
$userId : int

The user id

$data : array<string|int, mixed>

The data

createValidator()

Create validator.

private createValidator() : Validator
Return values
Validator

The validator


        
On this page

Search results