UpdateProfile
in package
Use case for updating a user's profile (username, email).
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- execute() : bool
- Update the user's profile.
Properties
$repository
private
UserRepositoryInterface
$repository
Methods
__construct()
public
__construct(UserRepositoryInterface $repository) : mixed
Parameters
- $repository : UserRepositoryInterface
execute()
Update the user's profile.
public
execute(User $user, string $username, string $email) : bool
Parameters
- $user : User
-
The user to update
- $username : string
-
New username
- $email : string
-
New email
Tags
Return values
bool —Whether the email changed (triggers re-verification)