Documentation

EspacePro extends User
in package

Tags
ORM\Entity

(repositoryClass=EspaceProRepository::class)

Table of Contents

$notifications  : Notification|Collection
$client  : Profesionnel|null
$id  : int
$information  : mixed
$logs  : mixed
$password  : string
$roles  : mixed
$username  : string
__construct()  : mixed
__toString()  : mixed
addInformation()  : self
addLog()  : self
addNotification()  : self
addRole()  : self
eraseCredentials()  : mixed
getClient()  : Profesionnel|null
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.
getType()  : string
getUsername()  : string
A visual identifier that represents this user.
is()  : bool
isAdmin()  : bool
removeInformation()  : self
removeLog()  : self
removeNotification()  : self
setClient()  : 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"})

$client

private Profesionnel|null $client
Tags
ORM\OneToOne

(targetEntity=Profesionnel::class, inversedBy="espacePro", cascade={"persist", "remove"})

ORM\JoinColumn

(nullable=false)

$id

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

(type="integer")

$information

private mixed $information
Tags
ORM\ManyToMany

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

$logs

private mixed $logs
Tags
ORM\OneToMany

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

$password

private string $password

The hashed password

Tags
ORM\Column

(type="string")

$roles

private mixed $roles = []
Tags
ORM\Column

(type="json")

$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

addInformation()

public addInformation(Information $information) : self
Parameters
$information : Information
Return values
self

addLog()

public addLog(Log $log) : self
Parameters
$log : Log
Return values
self

addRole()

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

eraseCredentials()

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

getIcone()

public getIcone() : string
Return values
string

getId()

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

getLogs()

public getLogs() : Collection<int, Log>
Return values
Collection<int, Log>

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

getType()

public getType() : string
Return values
string

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

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

Search results