Neon
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.
at line 39
static mixed
decode(string $input)
Converts given NEON to PHP value.
Returns scalars, arrays, DateTimeImmutable and Entity objects.