Mediatekformation

User
in package
implements UserInterface, PasswordAuthenticatedUserInterface

Attributes
#[Entity]
$repositoryClass: \App\Repository\UserRepository::class
#[UniqueConstraint]
$name: 'UNIQ_IDENTIFIER_USERNAME'
$fields: ['username']

Table of Contents

Interfaces

UserInterface
PasswordAuthenticatedUserInterface

Properties

$id  : int|null
$password  : string
$roles  : array<int, string>
$username  : string|null

Methods

eraseCredentials()  : void
getId()  : int|null
getPassword()  : string
getRoles()  : array<int, string>
getUserIdentifier()  : string
A visual identifier that represents this user.
getUsername()  : string|null
setPassword()  : static
setRoles()  : static
setUsername()  : static

Properties

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]

$password

private string $password = null

The hashed password

Attributes
#[Column]

$roles

private array<int, string> $roles = []

The user roles

Attributes
#[Column]

$username

private string|null $username = null
Attributes
#[Column]
$length: 180

Methods

eraseCredentials()

public eraseCredentials() : void
Tags
see
UserInterface

getId()

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

getPassword()

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

getRoles()

public getRoles() : array<int, string>
Tags
see
UserInterface
Return values
array<int, string>

getUserIdentifier()

A visual identifier that represents this user.

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

getUsername()

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

setPassword()

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

setRoles()

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

setUsername()

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

        
On this page

Search results