User
in package
implements
UserInterface
Tags
Interfaces, Classes, Traits and Enums
- UserInterface
Table of Contents
- $notifications : Notification|Collection
- $id : int|null
- $information : mixed
- $logs : mixed
- $password : string
- $roles : mixed
- $username : string
- __construct() : mixed
- __toString() : mixed
- addInformation() : self
- addLog() : self
- addNotification() : self
- addRole() : self
- eraseCredentials() : mixed
- getIcone() : string
- getId() : int|null
- getInformation() : Collection<int, Information>
- getLogs() : Collection<int, Log>
- getNotifications() : Collection<int, Notification>
- 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.
- getUsername() : string
- A visual identifier that represents this user.
- is() : bool
- isAdmin() : bool
- removeInformation() : self
- removeLog() : self
- removeNotification() : self
- setPassword() : self
- setRoles() : self
- setUsername() : self
- unseenNotifications() : ArrayCollection|Collection|Notification
Properties
$notifications
protected
Notification|Collection
$notifications
Tags
$id
private
int|null
$id
Tags
$information
private
mixed
$information
Tags
$logs
private
mixed
$logs
Tags
$password
private
string
$password
The hashed password
Tags
$roles
private
mixed
$roles
= []
Tags
$username
private
string
$username
Tags
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —addInformation()
public
addInformation(Information $information) : self
Parameters
- $information : Information
Return values
self —addLog()
public
addLog(Log $log) : self
Parameters
- $log : Log
Return values
self —addNotification()
public
addNotification(Notification $notification) : self
Parameters
- $notification : Notification
Return values
self —addRole()
public
addRole(string $role) : self
Parameters
- $role : string
Return values
self —eraseCredentials()
public
eraseCredentials() : mixed
Tags
Return values
mixed —getIcone()
public
getIcone() : string
Return values
string —getId()
public
getId() : int|null
Return values
int|null —getInformation()
public
getInformation() : Collection<int, Information>
Return values
Collection<int, Information> —getLogs()
public
getLogs() : Collection<int, Log>
Return values
Collection<int, Log> —getNotifications()
public
getNotifications() : Collection<int, Notification>
Return values
Collection<int, Notification> —getPassword()
public
getPassword() : string
Tags
Return values
string —getRoles()
public
getRoles() : array<string|int, mixed>
Tags
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
Return values
string|null —getUsername()
A visual identifier that represents this user.
public
getUsername() : string
Tags
Return values
string —is()
public
is(string $role) : bool
Parameters
- $role : string
Return values
bool —isAdmin()
public
isAdmin() : bool
Return values
bool —removeInformation()
public
removeInformation(Information $information) : self
Parameters
- $information : Information
Return values
self —removeLog()
public
removeLog(Log $log) : self
Parameters
- $log : Log
Return values
self —removeNotification()
public
removeNotification(Notification $notification) : self
Parameters
- $notification : Notification
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 —setUsername()
public
setUsername(string $username) : self
Parameters
- $username : string
Return values
self —unseenNotifications()
public
unseenNotifications() : ArrayCollection|Collection|Notification