mediatekformation

User
in package
implements UserInterface, PasswordAuthenticatedUserInterface

Tags
ORM\Entity

(repositoryClass=UserRepository::class)

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

$email

private mixed $email
Tags
ORM\Column

(type="string", length=180, unique=true)

$id

private mixed $id
Tags
ORM\Id
ORM\GeneratedValue
ORM\Column

(type="integer")

$keycloakId

private mixed $keycloakId
Tags
ORM\Column

(type="string", length=255, nullable=true)

$password

private string $password

The hashed password

Tags
ORM\Column

(type="string")

$roles

private mixed $roles = []
Tags
ORM\Column

(type="json")

Methods

eraseCredentials()

public eraseCredentials() : mixed
Tags
see
UserInterface

getEmail()

public getEmail() : string|null
Return values
string|null

getId()

public getId() : int|null
Return values
int|null

getKeycloakId()

public getKeycloakId() : string|null
Return values
string|null

getPassword()

public getPassword() : string
Tags
see
PasswordAuthenticatedUserInterface
Return values
string

getRoles()

public getRoles() : array<string|int, mixed>
Tags
see
UserInterface
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
see
UserInterface
Return values
string|null

getUserIdentifier()

A visual identifier that represents this user.

public getUserIdentifier() : string
Tags
see
UserInterface
Return values
string

getUsername()

public getUsername() : string
Tags
deprecated

since Symfony 5.3, use getUserIdentifier instead

Return values
string

setEmail()

public setEmail(string $email) : self
Parameters
$email : string
Return values
self

setKeycloakId()

public setKeycloakId(string|null $keycloakId) : self
Parameters
$keycloakId : string|null
Return values
self

setPassword()

public setPassword(string $password) : self
Parameters
$password : string
Return values
self

setRoles()

public setRoles(array<string|int, mixed> $roles) : self
Parameters
$roles : array<string|int, mixed>
Return values
self

        
On this page

Search results