UserUpdater
in package
FinalYes
Service.
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor.
- updateUser() : void
- Update user.
- updateUserAddr() : mixed
- updateUserPassword() : array<string|int, mixed>
- updateUserPwd() : mixed
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
updateUser()
Update user.
public
updateUser(int $userId, array<string|int, mixed> $data) : void
Parameters
- $userId : int
-
The user id
- $data : array<string|int, mixed>
-
The request data
updateUserAddr()
public
updateUserAddr(int $user_id, array<string|int, mixed> $data) : mixed
Parameters
- $user_id : int
- $data : array<string|int, mixed>
updateUserPassword()
public
updateUserPassword(int $userId, array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $userId : int
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>updateUserPwd()
public
updateUserPwd(int $user_id, array<string|int, mixed> $data) : mixed
Parameters
- $user_id : int
- $data : array<string|int, mixed>