interface FormatInterface (View source)

Class StructureFormatInterface

Methods

static string
structToString(object $struct, array $options = array())

Converts an object into a formatted string.

static object
stringToStruct(string $data, array $options = array())

Converts a formatted string into an object.

Details

at line line 28
static string structToString(object $struct, array $options = array())

Converts an object into a formatted string.

Parameters

object $struct Data Source Object.
array $options An array of options for the formatter.

Return Value

string Formatted string.

at line line 40
static object stringToStruct(string $data, array $options = array())

Converts a formatted string into an object.

Parameters

string $data Formatted string
array $options An array of options for the formatter.

Return Value

object Data Object