YmlFormat
class YmlFormat extends YamlFormat (View source)
YAML format proxy.
Methods
static string
structToString(object $struct, array $options = array())
Converts an object into a YAML formatted string.
from YamlFormat
static object
stringToStruct(string $data, array $options = array())
Parse a YAML formatted string and convert it into an object.
from YamlFormat
Details
in YamlFormat at line line 47
static string
structToString(object $struct, array $options = array())
Converts an object into a YAML formatted string.
We use json_* to convert the passed object to an array.
in YamlFormat at line line 66
static object
stringToStruct(string $data, array $options = array())
Parse a YAML formatted string and convert it into an object.
We use the json_* methods to convert the parsed YAML array to an object.
in YamlFormat at line line 76
static Parser
getParser()
getParser
in YamlFormat at line line 93
static YamlFormat
setParser(Parser $parser)
setParser
in YamlFormat at line line 103
static Dumper
getDumper()
getDumper
in YamlFormat at line line 120
static YamlFormat
setDumper(Dumper $dumper)
setDumper