class SerializeFormatter implements FormatterInterface

Methods

string
encode(mixed $data)

Encode data into a string.

mixed
decode(string $data)

Decode a string into data.

mixed
preserveLines(mixed $data, bool $reverse)

Preserve new lines, recursive function.

Details

at line 10
string encode(mixed $data)

Encode data into a string.

Parameters

mixed $data

Return Value

string

at line 18
mixed decode(string $data)

Decode a string into data.

Parameters

string $data

Return Value

mixed

at line 31
protected mixed preserveLines(mixed $data, bool $reverse)

Preserve new lines, recursive function.

Parameters

mixed $data
bool $reverse

Return Value

mixed