PrivateProfileService
in package
Application service for managing private profiles.
Table of Contents
Properties
Methods
- __construct() : mixed
- getProfile() : PrivateProfile
- Load a private profile for the given user.
- updateProfile() : PrivateProfile
- Update and persist a private profile.
Properties
$repository
private
PrivateProfileRepository
$repository
Methods
__construct()
public
__construct(PrivateProfileRepository $repository) : mixed
Parameters
- $repository : PrivateProfileRepository
getProfile()
Load a private profile for the given user.
public
getProfile(WebviepUserId $userId) : PrivateProfile
Parameters
- $userId : WebviepUserId
Return values
PrivateProfileupdateProfile()
Update and persist a private profile.
public
updateProfile(WebviepUserId $userId, PrivateProfileData $data) : PrivateProfile
Parameters
- $userId : WebviepUserId
- $data : PrivateProfileData