BotData implements RestEntity
Table of Contents
Interfaces
Methods
- cleanCache() : void
- getBotData() : array<string|int, mixed>
- getCode() : string
- getCommands() : array<string|int, mixed>
- getId() : int|null
- Returns the id of the entity
- getInstance() : self|null
- getRestEntityName() : string
- Returns the name of the entity that will be used in the rest response
- toRestFormat() : array<string|int, mixed>|null
- Returns an array in JSON like format to return the entity as a rest response.
Methods
cleanCache()
public
static cleanCache(int $id) : void
Parameters
- $id : int
getBotData()
public
getBotData() : array<string|int, mixed>
Return values
array<string|int, mixed>getCode()
public
getCode() : string
Return values
stringgetCommands()
public
getCommands() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
Returns the id of the entity
public
getId() : int|null
Return values
int|nullgetInstance()
public
static getInstance(int|null $id) : self|null
Parameters
- $id : int|null
Return values
self|nullgetRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringtoRestFormat()
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> = []