Documentation

Discussion extends BaseModel
in package

Table of Contents

Properties

$createdAt  : string
$id  : int
$isMuted  : bool
$languageId  : string|null
$projectId  : int
$repliesCount  : int
$status  : string
$title  : string
$updatedAt  : string
$user  : array<string|int, mixed>
$userId  : int

Methods

__construct()  : mixed
getCreatedAt()  : string
getId()  : int
getLanguageId()  : string|null
getProjectId()  : int
getRepliesCount()  : int
getStatus()  : string
getTitle()  : string
getUpdatedAt()  : string
getUser()  : array<string|int, mixed>
getUserId()  : int
isMuted()  : bool
setIsMuted()  : void
setStatus()  : void
setTitle()  : void

Properties

Methods

__construct()

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

getCreatedAt()

public getCreatedAt() : string
Return values
string

getLanguageId()

public getLanguageId() : string|null
Return values
string|null —

Null when the discussion is about all languages

getProjectId()

public getProjectId() : int
Return values
int

getRepliesCount()

public getRepliesCount() : int
Return values
int —

System replies included, the description not counted

getStatus()

public getStatus() : string
Return values
string —

open or closed

getTitle()

public getTitle() : string
Return values
string

getUpdatedAt()

public getUpdatedAt() : string
Return values
string

getUser()

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

id, username, fullName, avatarUrl

getUserId()

public getUserId() : int
Return values
int

isMuted()

public isMuted() : bool
Return values
bool —

Whether the authenticated user muted the discussion

setIsMuted()

public setIsMuted(bool $isMuted) : void
Parameters
$isMuted : bool

Applies to the authenticated user only

setStatus()

public setStatus(string $status) : void
Parameters
$status : string

open or closed

setTitle()

public setTitle(string $title) : void
Parameters
$title : string
On this page

Search results