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
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
stringeraseCredentials()
public
eraseCredentials() : void
getEmail()
public
getEmail() : non-empty-string
Return values
non-empty-stringgetFirstName()
public
getFirstName() : string|null
Return values
string|nullgetId()
public
getId() : Ulid|null
Return values
Ulid|nullgetLastName()
public
getLastName() : string|null
Return values
string|nullgetLocale()
public
getLocale() : string|null
Return values
string|nullgetPassword()
public
getPassword() : string|null
Tags
Attributes
- #[Override]
Return values
string|nullgetRoles()
public
getRoles() : array<string|int, mixed>
Tags
Attributes
- #[Override]
Return values
array<string|int, mixed>getUserIdentifier()
A visual identifier that represents this user.
public
getUserIdentifier() : non-empty-string
Tags
Attributes
- #[Override]
Return values
non-empty-stringsetEmail()
public
setEmail(string $email) : static
Parameters
- $email : string
Return values
staticsetFirstName()
public
setFirstName(string $firstName) : static
Parameters
- $firstName : string
Return values
staticsetLastName()
public
setLastName(string $lastName) : static
Parameters
- $lastName : string
Return values
staticsetLocale()
public
setLocale(string $locale) : static
Parameters
- $locale : string
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>