User
in package
implements
UserInterface, PasswordAuthenticatedUserInterface
Attributes
- #[Entity]
- $repositoryClass: \App\Repository\UserRepository::class
- #[UniqueConstraint]
- $name: 'UNIQ_IDENTIFIER_EMAIL'
- $fields: ['email']
Table of Contents
Interfaces
- UserInterface
- PasswordAuthenticatedUserInterface
Properties
- $email : string|null
- $id : int|null
- $keycloakId : string|null
- $password : string
- $roles : array<int, string>
Methods
- eraseCredentials() : void
- getEmail() : string|null
- getId() : int|null
- getKeycloakID() : string|null
- getPassword() : string
- getRoles() : array<int, string>
- getUserIdentifier() : string
- A visual identifier that represents this user.
- setEmail() : static
- setKeycloakID() : static
- setPassword() : static
- setRoles() : static
Properties
private
string|null
$email
= null
Attributes
- #[Column]
- $length: 180
$id
private
int|null
$id
= null
Attributes
- #[Column]
- #[GeneratedValue]
- #[Id]
$keycloakId
private
string|null
$keycloakId
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$password
private
string
$password
= null
The hashed password
Attributes
- #[Column]
$roles
private
array<int, string>
$roles
= []
The user roles
Attributes
- #[Column]
Methods
eraseCredentials()
public
eraseCredentials() : void
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<int, string>
Tags
Return values
array<int, string>getUserIdentifier()
A visual identifier that represents this user.
public
getUserIdentifier() : string
Tags
Return values
stringsetEmail()
public
setEmail(string $email) : static
Parameters
- $email : string
Return values
staticsetKeycloakID()
public
setKeycloakID(string|null $keycloakID) : static
Parameters
- $keycloakID : string|null
Return values
staticsetPassword()
public
setPassword(string $password) : static
Parameters
- $password : string
Return values
staticsetRoles()
public
setRoles(array<int, string> $roles) : static
Parameters
- $roles : array<int, string>