Documentation

Technicien extends User
in package

Tags
ORM\Entity

(repositoryClass=TechnicienRepository::class)

Table of Contents

$notifications  : Notification|Collection
$chats  : Chat|Collection
$diagnostics  : Diagnostic|Collection
$etapes  : Etapes|Collection
$historiqueStocks  : HistoriqueStock|Collection
$id  : int|null
$information  : Information|Collection
$livraisons  : Livraison|Collection
$messages  : Message|Collection
$password  : string
$roles  : mixed
$savs  : Sav|Collection
$tickets  : Ticket|Collection
$username  : string
__construct()  : mixed
__toString()  : mixed
addChat()  : self
addDiagnostic()  : self
addEtape()  : self
addHistoriqueStock()  : self
addInformation()  : self
addLivraison()  : self
addMessage()  : self
addNotification()  : self
addRole()  : self
addSav()  : self
addTicket()  : self
countUnread()  : int
eraseCredentials()  : mixed
getChats()  : Collection
getDiagnostics()  : Collection
getEtapes()  : Collection
getHistoriqueStocks()  : Collection
getId()  : int|null
getInformation()  : Collection<int, Information>
getLivraisons()  : Collection<int, Livraison>
getMessages()  : Collection
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.
getSavs()  : Collection
getTickets()  : Collection|array<string|int, Ticket>
getUsername()  : string
A visual identifier that represents this user.
is()  : bool
isAdmin()  : bool
removeChat()  : self
removeDiagnostic()  : self
removeEtape()  : self
removeHistoriqueStock()  : self
removeInformation()  : self
removeLivraison()  : self
removeMessage()  : self
removeNotification()  : self
removeSav()  : self
removeTicket()  : self
setPassword()  : self
setRoles()  : self
setUsername()  : self
unseenNotifications()  : ArrayCollection|Collection|Notification

Properties

$notifications

protected Notification|Collection $notifications
Tags
ORM\OneToMany

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

$chats

private Chat|Collection $chats
Tags
ORM\ManyToMany

(targetEntity=Chat::class, mappedBy="user")

$diagnostics

private Diagnostic|Collection $diagnostics
Tags
ORM\OneToMany

(targetEntity=Diagnostic::class, mappedBy="technicien")

$etapes

private Etapes|Collection $etapes
Tags
ORM\OneToMany

(targetEntity=Etapes::class, mappedBy="technicien")

$historiqueStocks

private HistoriqueStock|Collection $historiqueStocks
Tags
ORM\OneToMany

(targetEntity=HistoriqueStock::class, mappedBy="user")

$id

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

(type="integer")

$information

private Information|Collection $information
Tags
ORM\OneToMany

(targetEntity=Information::class, mappedBy="technicien")

$livraisons

private Livraison|Collection $livraisons
Tags
ORM\ManyToMany

(targetEntity=Livraison::class, mappedBy="technicien")

$messages

private Message|Collection $messages
Tags
ORM\OneToMany

(targetEntity=Message::class, mappedBy="user")

$password

private string $password

The hashed password

Tags
ORM\Column

(type="string")

$roles

private mixed $roles = []
Tags
ORM\Column

(type="json")

$savs

private Sav|Collection $savs
Tags
ORM\OneToMany

(targetEntity=Sav::class, mappedBy="Technicien", orphanRemoval=true)

$tickets

private Ticket|Collection $tickets
Tags
ORM\OneToMany

(targetEntity=Ticket::class, mappedBy="technicien")

$username

private string $username
Tags
ORM\Column

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

Methods

__construct()

public __construct() : mixed
Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

addChat()

public addChat(Chat $chat) : self
Parameters
$chat : Chat
Return values
self

addRole()

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

addSav()

public addSav(Sav $sav) : self
Parameters
$sav : Sav
Return values
self

countUnread()

public countUnread() : int
Return values
int

eraseCredentials()

public eraseCredentials() : mixed
Tags
see
UserInterface
Return values
mixed

getChats()

public getChats() : Collection
Return values
Collection

getDiagnostics()

public getDiagnostics() : Collection
Return values
Collection

getEtapes()

public getEtapes() : Collection
Return values
Collection

getHistoriqueStocks()

public getHistoriqueStocks() : Collection
Return values
Collection

getId()

public getId() : int|null
Return values
int|null

getMessages()

public getMessages() : Collection
Return values
Collection

getPassword()

public getPassword() : string
Tags
see
UserInterface
Return values
string

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

getSavs()

public getSavs() : Collection
Return values
Collection

getTickets()

public getTickets() : Collection|array<string|int, Ticket>
Return values
Collection|array<string|int, Ticket>

getUsername()

A visual identifier that represents this user.

public getUsername() : string
Tags
see
UserInterface
Return values
string

is()

public is(string $role) : bool
Parameters
$role : string
Return values
bool

isAdmin()

public isAdmin() : bool
Return values
bool

removeChat()

public removeChat(Chat $chat) : self
Parameters
$chat : Chat
Return values
self

removeNotification()

public removeNotification(Notification $notification) : self
Parameters
$notification : Notification
Return values
self

removeSav()

public removeSav(Sav $sav) : self
Parameters
$sav : Sav
Return values
self

removeTicket()

public removeTicket(Ticket $ticket) : self
Parameters
$ticket : Ticket
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
Return values
ArrayCollection|Collection|Notification

Search results