CopilotPopupItem implements PopupDataItem
Table of Contents
Interfaces
Constants
- ENTITIES = ['chat' => 'chat', 'messageCollection' => 'messageCollection']
Methods
- __construct() : mixed
- convertArrayData() : array<string|int, mixed>
- getRestEntityName() : string
- Returns the name of the entity that will be used in the rest response
- merge() : $this
- toRestFormat() : array<string|int, mixed>|null
- Returns an array in JSON like format to return the entity as a rest response.
Constants
ENTITIES
public
mixed
ENTITIES
= ['chat' => 'chat', 'messageCollection' => 'messageCollection']
Methods
__construct()
public
__construct(array<string|int, mixed> $copilotRoles, string $entity) : mixed
Parameters
- $copilotRoles : array<string|int, mixed>
- $entity : string
convertArrayData()
public
static convertArrayData(array<string|int, mixed> $data, string $entity) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
- $entity : string
Return values
array<string|int, mixed>getRestEntityName()
Returns the name of the entity that will be used in the rest response
public
static getRestEntityName() : string
Return values
stringmerge()
public
merge(PopupDataItem $item) : $this
Parameters
- $item : PopupDataItem
Return values
$thistoRestFormat()
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> = []