Message
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Properties
-
$authorName
: string
-
$dateCreate
: DateTime
-
$files
: array<string|int, mixed>
-
$forwardInfo
: ForwardInfo|null
-
$id
: int
-
$reply
: Message|null
-
$text
: string
Methods
-
__construct()
: mixed
-
jsonSerialize()
: array<string|int, mixed>
-
setReply()
: self
-
setText()
: self
$authorName
read-only
public
string
$authorName
$dateCreate
read-only
public
DateTime
$dateCreate
$files
read-only
public
array<string|int, mixed>
$files
$forwardInfo
read-only
public
ForwardInfo|null
$forwardInfo
$id
read-only
public
int
$id
$reply
read-only
public
Message|null
$reply
$text
read-only
public
string
$text
__construct()
public
__construct(int $id, string $text, DateTime $dateCreate, string $authorName, ForwardInfo|null $forwardInfo, array<string|int, File> $files, Message|null $reply) : mixed
Parameters
-
$id
: int
-
-
$text
: string
-
-
$dateCreate
: DateTime
-
-
$authorName
: string
-
-
$forwardInfo
: ForwardInfo|null
-
-
$files
: array<string|int, File>
-
-
$reply
: Message|null
-
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
setReply()
public
setReply(Message $newReply) : self
Parameters
-
$newReply
: Message
-
setText()
public
setText(string $newText) : self
Parameters
-
$newText
: string
-