AuthClientUserService
in package
AuthClient handling for users
Tags
Table of Contents
Properties
- $user : User
- $_authClients : array<string|int, ClientInterface>
Methods
- __construct() : mixed
- add() : void
- canChangeEmail() : bool
- canChangePassword() : bool
- Determines if this user is able to change the password.
- canChangeUsername() : bool
- canDeleteAccount() : bool
- getClients() : array<string|int, ClientInterface>
- getSyncAttributes() : array<string|int, string>
- Returns a list of attributes synced and handled by an AuthClient which is assigned to the user.
- remove() : void
- getPrimaryClient() : ClientInterface|null
Properties
$user
public
User
$user
$_authClients
private
array<string|int, ClientInterface>
$_authClients
= null
Methods
__construct()
public
__construct(User $user) : mixed
Parameters
- $user : User
add()
public
add(ClientInterface $authClient) : void
Parameters
- $authClient : ClientInterface
canChangeEmail()
public
canChangeEmail() : bool
Return values
boolcanChangePassword()
Determines if this user is able to change the password.
public
canChangePassword() : bool
Return values
boolcanChangeUsername()
public
canChangeUsername() : bool
Return values
boolcanDeleteAccount()
public
canDeleteAccount() : bool
Return values
boolgetClients()
public
getClients() : array<string|int, ClientInterface>
Return values
array<string|int, ClientInterface>getSyncAttributes()
Returns a list of attributes synced and handled by an AuthClient which is assigned to the user.
public
getSyncAttributes() : array<string|int, string>
Return values
array<string|int, string>remove()
public
remove(ClientInterface $authClient) : void
Parameters
- $authClient : ClientInterface
getPrimaryClient()
private
getPrimaryClient() : ClientInterface|null