QueueItem implements RestEntity
Table of Contents
Interfaces
Methods
- getId() : int|null
- Returns the id of the entity
- getName() : string|null
- getRestEntityName() : string
- Returns the name of the entity that will be used in the rest response
- getType() : string|null
- isActive() : bool|null
- setId() : self
- setIsActive() : self
- setName() : self
- setType() : self
- toRestFormat() : array<string|int, mixed>|null
- Returns an array in JSON like format to return the entity as a rest response.
Methods
getId()
Returns the id of the entity
public
getId() : int|null
Return values
int|nullgetName()
public
getName() : string|null
Return values
string|nullgetRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringgetType()
public
getType() : string|null
Return values
string|nullisActive()
public
isActive() : bool|null
Return values
bool|nullsetId()
public
setId(int $id) : self
Parameters
- $id : int
Return values
selfsetIsActive()
public
setIsActive(bool $isActive) : self
Parameters
- $isActive : bool
Return values
selfsetName()
public
setName(string $name) : self
Parameters
- $name : string
Return values
selfsetType()
public
setType(string $type) : self
Parameters
- $type : string
Return values
selftoRestFormat()
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> = []