RecentItem implements RestConvertible
Table of Contents
Interfaces
Methods
- getChatId() : int
- getDialogId() : string
- getMessageId() : int
- getRestEntityName() : string
- Returns the name of the entity that will be used in the rest response
- getSessionId() : int
- setChatId() : RecentItem
- setDialogId() : RecentItem
- setMessageId() : RecentItem
- setSessionId() : RecentItem
- toRestFormat() : array<string|int, mixed>|null
- Returns an array in JSON like format to return the entity as a rest response.
Methods
getChatId()
public
getChatId() : int
Return values
intgetDialogId()
public
getDialogId() : string
Return values
stringgetMessageId()
public
getMessageId() : int
Return values
intgetRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringgetSessionId()
public
getSessionId() : int
Return values
intsetChatId()
public
setChatId(int $chatId) : RecentItem
Parameters
- $chatId : int
Return values
RecentItemsetDialogId()
public
setDialogId(string $dialogId) : RecentItem
Parameters
- $dialogId : string
Return values
RecentItemsetMessageId()
public
setMessageId(int $messageId) : RecentItem
Parameters
- $messageId : int
Return values
RecentItemsetSessionId()
public
setSessionId(int|null $sessionId) : RecentItem
Parameters
- $sessionId : int|null
Return values
RecentItemtoRestFormat()
Returns an array in JSON like format to return the entity as a rest response.
public
toRestFormat([array<string|int, mixed> $option = [] ]) : array<string|int, mixed>|null
Parameters
- $option : array<string|int, mixed> = []