Documentation

Encoder
in package

Converts value to NEON format.

This is modified to perform preferred formatting for NEON forms.

Table of Contents

Properties

$indentation  : string
$jsonKeys  : array<string|int, mixed>

Methods

encode()  : string
Returns the NEON representation of a value.
valueToNode()  : Node
arrayToNodes()  : array<string|int, ArrayItemNode>

Properties

$indentation

public string $indentation = " "

$jsonKeys

public array<string|int, mixed> $jsonKeys = ['validate', 'args']

Methods

encode()

Returns the NEON representation of a value.

public encode(mixed $val) : string
Parameters
$val : mixed
Return values
string

valueToNode()

public valueToNode(mixed $key, mixed $val) : Node
Parameters
$key : mixed
$val : mixed
Return values
Node

arrayToNodes()

private arrayToNodes(mixed $val) : array<string|int, ArrayItemNode>
Parameters
$val : mixed
Return values
array<string|int, ArrayItemNode>
On this page

Search results