EspacePro
extends User
in package
Tags
Table of Contents
- $notifications : Notification|Collection
- $client : Profesionnel|null
- $id : int|null
- $password : string
- $roles : mixed
- $username : string
- __construct() : mixed
- __toString() : mixed
- addNotification() : self
- addRole() : self
- eraseCredentials() : mixed
- getClient() : Profesionnel|null
- getId() : int|null
- 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
- removeNotification() : self
- setClient() : self
- setPassword() : self
- setRoles() : self
- setUsername() : self
- unseenNotifications() : ArrayCollection|Collection|Notification
Properties
$notifications
protected
Notification|Collection
$notifications
Tags
$client
private
Profesionnel|null
$client
Tags
$id
private
int|null
$id
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 —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 —getClient()
public
getClient() : Profesionnel|null
Return values
Profesionnel|null —getId()
public
getId() : int|null
Return values
int|null —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 —removeNotification()
public
removeNotification(Notification $notification) : self
Parameters
- $notification : Notification
Return values
self —setClient()
public
setClient(Profesionnel $client) : self
Parameters
- $client : Profesionnel
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