RestAdapter implements RestConvertible
Table of Contents
Interfaces
Methods
- __construct() : mixed
- addAdditionalPopupData() : self
- addEntities() : self
- getRestEntityName() : string
- Returns the name of the entity that will be used in the rest response
- setAdditionalPopupData() : self
- 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(RestConvertible ...$entities) : mixed
Parameters
- $entities : RestConvertible
addAdditionalPopupData()
public
addAdditionalPopupData(PopupData $popupData) : self
Parameters
- $popupData : PopupData
Return values
selfaddEntities()
public
addEntities(RestConvertible ...$entities) : self
Parameters
- $entities : RestConvertible
Return values
selfgetRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringsetAdditionalPopupData()
public
setAdditionalPopupData(PopupData $popupData) : self
Parameters
- $popupData : PopupData
Return values
selftoRestFormat()
Returns an array in JSON like format to return the entity as a rest response.
public
toRestFormat([array<string|int, mixed> $options = [] ]) : array<string|int, mixed>|null
Parameters
- $options : array<string|int, mixed> = []