Documentation

JsonDecoder
in package

Table of Contents

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

Properties

$reflectionClassCache

private array<string|int, ReflectionClass> $reflectionClassCache

Node type to reflection class map

Methods

decode()

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

classNameFromNodeType()

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

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
Return values
mixed

reflectionClassFromNodeType()

private reflectionClassFromNodeType(string $nodeType) : ReflectionClass
Parameters
$nodeType : string
Return values
ReflectionClass

Search results