Documentation

DiscussionReply extends BaseModel
in package

Table of Contents

Properties

$createdAt  : string
$discussionId  : int
$id  : int
$text  : string
$type  : string
$updatedAt  : string
$user  : array<string|int, mixed>
$userId  : int

Methods

__construct()  : mixed
getCreatedAt()  : string
getDiscussionId()  : int
getId()  : int
getText()  : string
getType()  : string
getUpdatedAt()  : string
getUser()  : array<string|int, mixed>
getUserId()  : int
setText()  : void

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []

getText()

public getText() : string
Return values
string —

Markdown. For system replies, the new discussion status: open or closed

getType()

public getType() : string
Return values
string —

description, reply or system

getUser()

public getUser() : array<string|int, mixed>
Return values
array<string|int, mixed> —

id, username, fullName, avatarUrl

setText()

public setText(string $text) : void
Parameters
$text : string

Markdown. System replies can't be edited

On this page

Search results