mediatekformation

User
in package
implements UserInterface, PasswordAuthenticatedUserInterface

Tags
ORM\Entity

(repositoryClass=UserRepository::class)

Interfaces, Classes, Traits and Enums

UserInterface
PasswordAuthenticatedUserInterface

Table of Contents

$id  : mixed
$password  : string
$roles  : mixed
$username  : mixed
eraseCredentials()  : mixed
getId()  : int|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
setPassword()  : self
setRoles()  : self
setUsername()  : self

Properties

$id

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

(type="integer")

$password

private string $password

The hashed password

Tags
ORM\Column

(type="string")

$roles

private mixed $roles = []
Tags
ORM\Column

(type="json")

$username

private mixed $username
Tags
ORM\Column

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

Methods

eraseCredentials()

public eraseCredentials() : mixed
Tags
see
UserInterface
Return values
mixed

getId()

public getId() : int|null
Return values
int|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

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

setUsername()

public setUsername(string $username) : self
Parameters
$username : string
Return values
self

Search results