JavaScriptItems
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Properties
-
$globalAssignments
: array<int, array<string|int, mixed>>
-
$javaScriptModuleInstructions
: array<int, JavaScriptModuleInstruction>
Methods
-
addGlobalAssignment()
: void
-
addJavaScriptModuleInstruction()
: void
-
isEmpty()
: bool
-
jsonSerialize()
: array<string|int, mixed>
-
toArray()
: array<int, array{type: string, payload: mixed}>
$globalAssignments
protected
array<int, array<string|int, mixed>>
$globalAssignments
= []
$javaScriptModuleInstructions
protected
array<int, JavaScriptModuleInstruction>
$javaScriptModuleInstructions
= []
addGlobalAssignment()
public
addGlobalAssignment(array<string|int, mixed> $payload) : void
Parameters
-
$payload
: array<string|int, mixed>
-
addJavaScriptModuleInstruction()
public
addJavaScriptModuleInstruction(JavaScriptModuleInstruction $instruction) : void
Parameters
-
$instruction
: JavaScriptModuleInstruction
-
isEmpty()
public
isEmpty() : bool
jsonSerialize()
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}>