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
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 = []

Methods

addGlobalAssignment()

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

getState()

public getState() : array<string|int, mixed>
Internal
Return values
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}>

updateState()

public updateState(array<string|int, mixed> $state) : void
Parameters
$state : array<string|int, mixed>
Internal

        
On this page

Search results