Bitrix API

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

Properties

$authorName read-only

public string $authorName

$files read-only

public array<string|int, mixed> $files

Methods

__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>

setText()

public setText(string $newText) : self
Parameters
$newText : string
Return values
self

        
On this page

Search results