RestEntity extends Entity, RestConvertible
Table of Contents
Methods
- getId() : int|null
- Returns the id of the entity
- 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
getId()
Returns the id of the entity
public
getId() : int|null
Return values
int|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> = []