FormatInterface

Interface defining a format object

since

1.5.0

Methods

objectToString

Converts an object into a formatted string.

objectToString(object $object, array $options = null) : string
since

1.5.0

Arguments

$object

objectData Source Object.

$options

arrayAn array of options for the formatter.

Response

stringFormatted string.

stringToObject

Converts a formatted string into an object.

stringToObject(string $data, array $options = array()) : object
since

1.5.0

Arguments

$data

stringFormatted string

$options

arrayAn array of options for the formatter.

Response

objectData Object