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
$createdAt
protected
string
$createdAt
$discussionId
protected
int
$discussionId
$id
protected
int
$id
$text
protected
string
$text
$type
protected
string
$type
$updatedAt
protected
string
$updatedAt
$user
protected
array<string|int, mixed>
$user
$userId
protected
int
$userId
Methods
__construct()
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
getCreatedAt()
public
getCreatedAt() : string
Return values
stringgetDiscussionId()
public
getDiscussionId() : int
Return values
intgetId()
public
getId() : int
Return values
intgetText()
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
getUpdatedAt()
public
getUpdatedAt() : string
Return values
stringgetUser()
public
getUser() : array<string|int, mixed>
Return values
array<string|int, mixed> —id, username, fullName, avatarUrl
getUserId()
public
getUserId() : int
Return values
intsetText()
public
setText(string $text) : void
Parameters
- $text : string
-
Markdown. System replies can't be edited