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
$createdAt
protected
string
$createdAt
$id
protected
int
$id
$isMuted
protected
bool
$isMuted
$languageId
protected
string|null
$languageId
$projectId
protected
int
$projectId
$repliesCount
protected
int
$repliesCount
$status
protected
string
$status
$title
protected
string
$title
$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
stringgetId()
public
getId() : int
Return values
intgetLanguageId()
public
getLanguageId() : string|null
Return values
string|null —Null when the discussion is about all languages
getProjectId()
public
getProjectId() : int
Return values
intgetRepliesCount()
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
stringgetUpdatedAt()
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
intisMuted()
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