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}>

Properties

$globalAssignments

protected array<int, array<string|int, mixed>> $globalAssignments = []

Methods

addGlobalAssignment()

public addGlobalAssignment(array<string|int, mixed> $payload) : void
Parameters
$payload : array<string|int, mixed>

isEmpty()

public isEmpty() : bool
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<int, array{type: string, payload: mixed}>
Internal
Return values
array<int, array{type: string, payload: mixed}>

        
On this page

Search results