final class Neon

Simple parser & generator for Nette Object Notation.

Constants

BLOCK

CHAIN

Methods

static string
encode($value, bool $blockMode = false, string $indentation = "\t")

Returns value converted to NEON.

static mixed
decode(string $input)

Converts given NEON to PHP value.

static mixed
decodeFile(string $file)

Converts given NEON file to PHP value.

Details

at line 27
static string encode($value, bool $blockMode = false, string $indentation = "\t")

Returns value converted to NEON.

Parameters

$value
bool $blockMode
string $indentation

Return Value

string

at line 40
static mixed decode(string $input)

Converts given NEON to PHP value.

Parameters

string $input

Return Value

mixed

at line 51
static mixed decodeFile(string $file)

Converts given NEON file to PHP value.

Parameters

string $file

Return Value

mixed