Documentation

User
in package
implements UserInterface, PasswordAuthenticatedUserInterface uses IpTraceableEntity

FinalYes
Attributes
#[Entity]
$repositoryClass: \Seigisoft\SeigiCms\SecurityBundle\Repository\UserRepository::class
#[Table]
$name: "`user`"
#[UniqueConstraint]
$name: "UNIQ_IDENTIFIER_EMAIL"
$fields: ["email"]
#[UniqueEntity]
$fields: ["email"]
$message: "There is already an account with this email"

Table of Contents

Interfaces

UserInterface
PasswordAuthenticatedUserInterface

Properties

$email  : string|null
$firstName  : string|null
$id  : Ulid|null
$lastName  : string|null
$locale  : string|null
$password  : string
$roles  : array<int, string>

Methods

__serialize()  : array<string|int, mixed>
Ensure the session doesn't contain actual password hashes by CRC32C-hashing them, as supported since Symfony 7.3.
__toString()  : string
eraseCredentials()  : void
getEmail()  : non-empty-string
getFirstName()  : string|null
getId()  : Ulid|null
getLastName()  : string|null
getLocale()  : string|null
getPassword()  : string|null
getRoles()  : array<string|int, mixed>
getUserIdentifier()  : non-empty-string
A visual identifier that represents this user.
setEmail()  : static
setFirstName()  : static
setLastName()  : static
setLocale()  : static
setPassword()  : static
setRoles()  : static

Properties

$email

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

$firstName

private string|null $firstName = null
Attributes
#[Column]
$type: \Doctrine\DBAL\Types\Types::STRING

$id

private Ulid|null $id = null
Attributes
#[Column]
$type: \Symfony\Bridge\Doctrine\Types\UlidType::NAME
$unique: true
#[CustomIdGenerator]
$class: "doctrine.ulid_generator"
#[GeneratedValue]
$strategy: "CUSTOM"
#[Id]

$lastName

private string|null $lastName = null
Attributes
#[Column]
$type: \Doctrine\DBAL\Types\Types::STRING

$locale

private string|null $locale = null
Attributes
#[Column]
$length: 255

$password

private string $password = null

The hashed password

Attributes
#[Column]

$roles

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

The user roles

Attributes
#[Column]

Methods

__serialize()

Ensure the session doesn't contain actual password hashes by CRC32C-hashing them, as supported since Symfony 7.3.

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__toString()

public __toString() : string
Return values
string

eraseCredentials()

public eraseCredentials() : void

getEmail()

public getEmail() : non-empty-string
Return values
non-empty-string

getFirstName()

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

getId()

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

getLastName()

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

getLocale()

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

getPassword()

public getPassword() : string|null
Tags
see
PasswordAuthenticatedUserInterface
Attributes
#[Override]
Return values
string|null

getRoles()

public getRoles() : array<string|int, mixed>
Tags
see
UserInterface
Attributes
#[Override]
Return values
array<string|int, mixed>

getUserIdentifier()

A visual identifier that represents this user.

public getUserIdentifier() : non-empty-string
Tags
see
UserInterface
Attributes
#[Override]
Return values
non-empty-string

setEmail()

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

setFirstName()

public setFirstName(string $firstName) : static
Parameters
$firstName : string
Return values
static

setLastName()

public setLastName(string $lastName) : static
Parameters
$lastName : string
Return values
static

setLocale()

public setLocale(string $locale) : static
Parameters
$locale : string
Return values
static

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
On this page

Search results