Documentation

Revendeur extends User
in package

Tags
ORM\Entity

(repositoryClass=RevendeurRepository::class)

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
ORM\OneToMany

(targetEntity=Notification::class, mappedBy="user",cascade={"persist","remove"})

$adresse

private string|null $adresse
Tags
ORM\Column

(type="text", nullable=true)

$contact

private string|null $contact
Tags
ORM\Column

(type="text", nullable=true)

$cp

private string|null $cp
Tags
ORM\Column

(type="string", length=5, nullable=true)

$id

private int|null $id
Tags
ORM\Id
ORM\GeneratedValue
ORM\Column

(type="integer")

$mail

private string|null $mail
Tags
ORM\Column

(type="string", length=255, nullable=true)

$nom

private string|null $nom
Tags
ORM\Column

(type="string", length=255)

$offre

private string|null $offre
Tags
ORM\Column

(type="text", nullable=true)

$password

private string $password

The hashed password

Tags
ORM\Column

(type="string")

$pcRevendeurs

private PcRevendeur|Collection $pcRevendeurs
Tags
ORM\OneToMany

(targetEntity=PcRevendeur::class, mappedBy="revendeur",cascade={"persist"})

$roles

private mixed $roles = []
Tags
ORM\Column

(type="json")

$SIRET

private string|null $SIRET
Tags
ORM\Column

(type="string", length=255, nullable=true)

$telephone

private string|null $telephone
Tags
ORM\Column

(type="string", length=10, nullable=true)

$username

private string $username
Tags
ORM\Column

(type="string", length=180, unique=true)

$ville

private string|null $ville
Tags
ORM\Column

(type="string", length=255, nullable=true)

Methods

__construct()

public __construct() : mixed
Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

addRole()

public addRole(string $role) : self
Parameters
$role : string
Return values
self

eraseCredentials()

public eraseCredentials() : mixed
Tags
see
UserInterface
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

getOffre()

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

getPassword()

public getPassword() : string
Tags
see
UserInterface
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
see
UserInterface
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
see
UserInterface
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
see
UserInterface
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

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
Return values
ArrayCollection|Collection|Notification

Search results