Documentation

JsonDecoder
in package

Table of Contents

Properties

$reflectionClassCache  : array<string|int, ReflectionClass<string|int, Node>>

Methods

decode()  : mixed
classNameFromNodeType()  : Node>
decodeArray()  : array<string|int, mixed>
decodeComment()  : Comment
decodeNode()  : Node
decodeRecursive()  : mixed
reflectionClassFromNodeType()  : ReflectionClass<string|int, Node>

Properties

$reflectionClassCache

private array<string|int, ReflectionClass<string|int, Node>> $reflectionClassCache

Node type to reflection class map

Methods

decode()

public decode(string $json) : mixed
Parameters
$json : string

classNameFromNodeType()

private classNameFromNodeType(string $nodeType) : Node>
Parameters
$nodeType : string
Return values
Node>

decodeArray()

private decodeArray(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
Return values
array<string|int, mixed>

decodeComment()

private decodeComment(array<string|int, mixed> $value) : Comment
Parameters
$value : array<string|int, mixed>
Return values
Comment

decodeNode()

private decodeNode(array<string|int, mixed> $value) : Node
Parameters
$value : array<string|int, mixed>
Return values
Node

decodeRecursive()

private decodeRecursive(mixed $value) : mixed
Parameters
$value : mixed

reflectionClassFromNodeType()

private reflectionClassFromNodeType(string $nodeType) : ReflectionClass<string|int, Node>
Parameters
$nodeType : string
Return values
ReflectionClass<string|int, Node>

        
On this page

Search results