UserCreator
in package
FinalYes
Service.
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor.
- createDocUser() : int
- createPazUser() : int
- createUser() : int
- Create a new user.
Properties
$repository
private
UserRepository
$repository
$userValidator
private
UserValidator
$userValidator
Methods
__construct()
The constructor.
public
__construct(UserRepository $repository, UserValidator $userValidator) : mixed
Parameters
- $repository : UserRepository
-
The repository
- $userValidator : UserValidator
-
The validator
createDocUser()
public
createDocUser(array<string|int, mixed> $data) : int
Parameters
- $data : array<string|int, mixed>
Return values
intcreatePazUser()
public
createPazUser(array<string|int, mixed> $data) : int
Parameters
- $data : array<string|int, mixed>
Return values
intcreateUser()
Create a new user.
public
createUser(array<string|int, mixed> $data) : int
Parameters
- $data : array<string|int, mixed>
-
The form data
Return values
int —The new user ID