Menu

## JsonDecoder
in package

JsonDecoder.php : 5

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

JsonDecoder.php : 8
`private array<string|int, ReflectionClass> $reflectionClassCache`

Node type to reflection class map

### Methods

#### decode()

JsonDecoder.php : 10
`public decode(string $json) : mixed`

##### Parameters

$json : string

##### Return values

mixed —

#### classNameFromNodeType()

JsonDecoder.php : 90
`private classNameFromNodeType(string $nodeType) : string`

##### Parameters

$nodeType : string

##### Return values

string —

#### decodeArray()

JsonDecoder.php : 32
`private decodeArray(array<string|int, mixed> $array) : array<string|int, mixed>`

##### Parameters

$array : array<string|int, mixed>

##### Return values

array<string|int, mixed> —

#### decodeComment()

JsonDecoder.php : 69
`private decodeComment(array<string|int, mixed> $value) : Comment`

##### Parameters

$value : array<string|int, mixed>

##### Return values

Comment —

#### decodeNode()

JsonDecoder.php : 40
`private decodeNode(array<string|int, mixed> $value) : Node`

##### Parameters

$value : array<string|int, mixed>

##### Return values

Node —

#### decodeRecursive()

JsonDecoder.php : 19
`private decodeRecursive(mixed $value) : mixed`

##### Parameters

$value : mixed

##### Return values

mixed —

#### reflectionClassFromNodeType()

JsonDecoder.php : 82
`private reflectionClassFromNodeType(string $nodeType) : ReflectionClass`

##### Parameters

$nodeType : string

##### Return values

ReflectionClass —

## Search results