public function objectToString($object, $options = array())
	{
		if (is_string($object))
		{
			return $object;
		}

		return SymfonyYaml::dump((array) $this->asArray($object), 2);
	}
public function objectToString($object, $options = array())
	{
		if (is_string($object))
		{
			return $object;
		}

		return SymfonyYaml::dump((array) $this->asArray($object), 2);
	}
public function objectToString ( $ object , $ options = array ( ) ) { if ( is_string ( $ object ) ) { return $ object ; } return SymfonyYaml :: dump ( ( array ) $ this -> asArray ( $ object ) , 2 ) ; }
Converts an object into a YAML formatted string.

@param   object  $object   Data source object.
@param   array   $options  Options used by the formatter.
@return  string  YAML formatted string.
Converts an object into a YAML formatted string .