final class Neon

Simple parser & generator for Nette Object Notation.

Constants

BLOCK

CHAIN

Methods

static string
encode($value, int $flags = 0)

Returns value converted to NEON. The flag can be Neon::BLOCK, which will create multiline output.

static mixed
decode(string $input)

Converts given NEON to PHP value.

Details

at line 27
static string encode($value, int $flags = 0)

Returns value converted to NEON. The flag can be Neon::BLOCK, which will create multiline output.

Parameters

$value
int $flags

Return Value

string

at line 39
static mixed decode(string $input)

Converts given NEON to PHP value.

Returns scalars, arrays, DateTimeImmutable and Entity objects.

Parameters

string $input

Return Value

mixed