Documentation

Message
in package

Tags
ORM\Entity

(repositoryClass=MessageRepository::class)

Table of Contents

$chat  : Chat|null
$content  : string|null
$date  : string
$id  : int|null
$is_read  : bool
$user  : Technicien|null
__construct()  : mixed
getChat()  : Chat|null
getContent()  : string|null
getDate()  : string
getId()  : int|null
getIsRead()  : bool|null
getUser()  : User|null
isRead()  : bool|null
read()  : mixed
setChat()  : self
setContent()  : self
setDate()  : self
setIsRead()  : self
setUser()  : self

Properties

$chat

private Chat|null $chat
Tags
ORM\ManyToOne

(targetEntity=Chat::class, inversedBy="message")

ORM\JoinColumn

(nullable=false)

$content

private string|null $content
Tags
ORM\Column

(type="text")

$date

private string $date
Tags
ORM\Column

(type="datetime")

$id

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

(type="integer")

$is_read

private bool $is_read
Tags
ORM\Column

(type="boolean")

$user

private Technicien|null $user
Tags
ORM\ManyToOne

(targetEntity=Technicien::class, inversedBy="messages")

ORM\JoinColumn

(nullable=false)

Methods

__construct()

public __construct(mixed $date, mixed $user, mixed $content[, mixed $is_read = true ]) : mixed
Parameters
$date : mixed
$user : mixed
$content : mixed
$is_read : mixed = true
Return values
mixed

getContent()

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

getDate()

public getDate() : string
Return values
string

getId()

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

getIsRead()

public getIsRead() : bool|null
Return values
bool|null

isRead()

public isRead() : bool|null
Return values
bool|null

read()

public read() : mixed
Return values
mixed

setChat()

public setChat(Chat|null $chat) : self
Parameters
$chat : Chat|null
Return values
self

setContent()

public setContent(string $content) : self
Parameters
$content : string
Return values
self

setDate()

public setDate(DateTimeInterface $date) : self
Parameters
$date : DateTimeInterface
Return values
self

setIsRead()

public setIsRead(bool $is_read) : self
Parameters
$is_read : bool
Return values
self

setUser()

public setUser(User|null $user) : self
Parameters
$user : User|null
Return values
self

Search results