Department implements RestEntity
Table of Contents
Interfaces
Methods
- __construct() : mixed
- getDepth() : int
- getId() : int|null
- Returns the id of the entity
- getName() : string
- getRestEntityName() : string
- Returns the name of the entity that will be used in the rest response
- isExist() : bool
- toRestFormat() : array<string|int, mixed>|null
- Returns an array in JSON like format to return the entity as a rest response.
Methods
__construct()
public
__construct(int $id) : mixed
Parameters
- $id : int
getDepth()
public
getDepth() : int
Return values
intgetId()
Returns the id of the entity
public
getId() : int|null
Return values
int|nullgetName()
public
getName() : string
Return values
stringgetRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringisExist()
public
isExist() : bool
Return values
booltoRestFormat()
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> = []