Revendeur
extends User
in package
Tags
Table of Contents
- $notifications : Notification|Collection
- $adresse : string|null
- $contact : string|null
- $cp : string|null
- $id : int|null
- $mail : string|null
- $nom : string|null
- $offre : string|null
- $password : string
- $pcRevendeurs : PcRevendeur|Collection
- $roles : mixed
- $SIRET : string|null
- $telephone : string|null
- $username : string
- $ville : string|null
- __construct() : mixed
- __toString() : mixed
- addNotification() : self
- addPcRevendeur() : self
- addRole() : self
- eraseCredentials() : mixed
- getAdresse() : string|null
- getContact() : string|null
- getCp() : string|null
- getId() : int|null
- getMail() : string|null
- getNom() : string|null
- getNotifications() : Collection<int, Notification>
- getOffre() : string|null
- getPassword() : string
- getPcRevendeurs() : Collection
- getPcRevendeurWithPc() : mixed
- 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.
- getSIRET() : string|null
- getTelephone() : string|null
- getUsername() : string
- A visual identifier that represents this user.
- getVille() : string|null
- havePc() : mixed
- is() : bool
- isAdmin() : bool
- removeNotification() : self
- removePcRevendeur() : self
- setAdresse() : self
- setContact() : self
- setCp() : self
- setMail() : self
- setNom() : self
- setOffre() : self
- setPassword() : self
- setRoles() : self
- setSIRET() : self
- setTelephone() : self
- setUsername() : self
- setVille() : self
- unseenNotifications() : ArrayCollection|Collection|Notification
Properties
$notifications
protected
Notification|Collection
$notifications
Tags
$adresse
private
string|null
$adresse
Tags
$contact
private
string|null
$contact
Tags
$cp
private
string|null
$cp
Tags
$id
private
int|null
$id
Tags
private
string|null
$mail
Tags
$nom
private
string|null
$nom
Tags
$offre
private
string|null
$offre
Tags
$password
private
string
$password
The hashed password
Tags
$pcRevendeurs
private
PcRevendeur|Collection
$pcRevendeurs
Tags
$roles
private
mixed
$roles
= []
Tags
$SIRET
private
string|null
$SIRET
Tags
$telephone
private
string|null
$telephone
Tags
$username
private
string
$username
Tags
$ville
private
string|null
$ville
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 —addPcRevendeur()
public
addPcRevendeur(PcRevendeur $pcRevendeur) : self
Parameters
- $pcRevendeur : PcRevendeur
Return values
self —addRole()
public
addRole(string $role) : self
Parameters
- $role : string
Return values
self —eraseCredentials()
public
eraseCredentials() : mixed
Tags
Return values
mixed —getAdresse()
public
getAdresse() : string|null
Return values
string|null —getContact()
public
getContact() : string|null
Return values
string|null —getCp()
public
getCp() : string|null
Return values
string|null —getId()
public
getId() : int|null
Return values
int|null —getMail()
public
getMail() : string|null
Return values
string|null —getNom()
public
getNom() : string|null
Return values
string|null —getNotifications()
public
getNotifications() : Collection<int, Notification>
Return values
Collection<int, Notification> —getOffre()
public
getOffre() : string|null
Return values
string|null —getPassword()
public
getPassword() : string
Tags
Return values
string —getPcRevendeurs()
public
getPcRevendeurs() : Collection
Return values
Collection —getPcRevendeurWithPc()
public
getPcRevendeurWithPc(Pc $pc) : mixed
Parameters
- $pc : Pc
Return values
mixed —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 —getSIRET()
public
getSIRET() : string|null
Return values
string|null —getTelephone()
public
getTelephone() : string|null
Return values
string|null —getUsername()
A visual identifier that represents this user.
public
getUsername() : string
Tags
Return values
string —getVille()
public
getVille() : string|null
Return values
string|null —havePc()
public
havePc(Pc $pc) : mixed
Parameters
- $pc : Pc
Return values
mixed —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 —removePcRevendeur()
public
removePcRevendeur(PcRevendeur $pcRevendeur) : self
Parameters
- $pcRevendeur : PcRevendeur
Return values
self —setAdresse()
public
setAdresse(string|null $adresse) : self
Parameters
- $adresse : string|null
Return values
self —setContact()
public
setContact(string|null $contact) : self
Parameters
- $contact : string|null
Return values
self —setCp()
public
setCp(string|null $cp) : self
Parameters
- $cp : string|null
Return values
self —setMail()
public
setMail(string|null $mail) : self
Parameters
- $mail : string|null
Return values
self —setNom()
public
setNom(string $nom) : self
Parameters
- $nom : string
Return values
self —setOffre()
public
setOffre(string|null $offre) : self
Parameters
- $offre : string|null
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 —setSIRET()
public
setSIRET(string|null $SIRET) : self
Parameters
- $SIRET : string|null
Return values
self —setTelephone()
public
setTelephone(string|null $telephone) : self
Parameters
- $telephone : string|null
Return values
self —setUsername()
public
setUsername(string $username) : self
Parameters
- $username : string
Return values
self —setVille()
public
setVille(string|null $ville) : self
Parameters
- $ville : string|null
Return values
self —unseenNotifications()
public
unseenNotifications() : ArrayCollection|Collection|Notification