JavaScriptItems implements JsonSerializable
FinalYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $globalAssignments : array<int, array<string|int, mixed>>
- $javaScriptModuleInstructions : array<int, JavaScriptModuleInstruction>
Methods
- addGlobalAssignment() : void
- addJavaScriptModuleInstruction() : void
- getState() : array<string|int, mixed>
- isEmpty() : bool
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<int, array{type: string, payload: mixed}>
- updateState() : void
Properties
$globalAssignments
protected
array<int, array<string|int, mixed>>
$globalAssignments
= []
$javaScriptModuleInstructions
protected
array<int, JavaScriptModuleInstruction>
$javaScriptModuleInstructions
= []
Methods
addGlobalAssignment()
public
addGlobalAssignment(array<string|int, mixed> $payload) : void
Parameters
- $payload : array<string|int, mixed>
addJavaScriptModuleInstruction()
public
addJavaScriptModuleInstruction(JavaScriptModuleInstruction $instruction) : void
Parameters
- $instruction : JavaScriptModuleInstruction
getState()
public
getState() : array<string|int, mixed>
Return values
array<string|int, mixed>isEmpty()
public
isEmpty() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<int, array{type: string, payload: mixed}>
Return values
array<int, array{type: string, payload: mixed}>updateState()
public
updateState(array<string|int, mixed> $state) : void
Parameters
- $state : array<string|int, mixed>