User
in package
implements
UserInterface, PasswordAuthenticatedUserInterface
Tags
Table of Contents
Interfaces
- UserInterface
- PasswordAuthenticatedUserInterface
Properties
- $email : mixed
- $id : mixed
- $keycloakId : mixed
- $password : string
- $roles : mixed
Methods
- eraseCredentials() : mixed
- getEmail() : string|null
- getId() : int|null
- getKeycloakId() : string|null
- getPassword() : string
- getRoles() : array<string|int, mixed>
- getSalt() : string|null
- Returning a salt is only needed, if you are not using a modern hashing algorithm (e.g. bcrypt or sodium) in your security.yaml.
- getUserIdentifier() : string
- A visual identifier that represents this user.
- getUsername() : string
- setEmail() : self
- setKeycloakId() : self
- setPassword() : self
- setRoles() : self
Properties
private
mixed
$email
Tags
$id
private
mixed
$id
Tags
$keycloakId
private
mixed
$keycloakId
Tags
$password
private
string
$password
The hashed password
Tags
$roles
private
mixed
$roles
= []
Tags
Methods
eraseCredentials()
public
eraseCredentials() : mixed
Tags
getEmail()
public
getEmail() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetKeycloakId()
public
getKeycloakId() : string|null
Return values
string|nullgetPassword()
public
getPassword() : string
Tags
Return values
stringgetRoles()
public
getRoles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getSalt()
Returning a salt is only needed, if you are not using a modern hashing algorithm (e.g. bcrypt or sodium) in your security.yaml.
public
getSalt() : string|null
Tags
Return values
string|nullgetUserIdentifier()
A visual identifier that represents this user.
public
getUserIdentifier() : string
Tags
Return values
stringgetUsername()
public
getUsername() : string
Tags
Return values
stringsetEmail()
public
setEmail(string $email) : self
Parameters
- $email : string
Return values
selfsetKeycloakId()
public
setKeycloakId(string|null $keycloakId) : self
Parameters
- $keycloakId : string|null
Return values
selfsetPassword()
public
setPassword(string $password) : self
Parameters
- $password : string
Return values
selfsetRoles()
public
setRoles(array<string|int, mixed> $roles) : self
Parameters
- $roles : array<string|int, mixed>