public static function decode($string)
    {
        if (!$string) {
            return new ArrayObject();
        }

        $array = SymfonyYaml::parse($string);

        if (!is_array($array)) {
            $array = [];
        }

        return ArrayObject::make($array);
    }
public static function decode($string)
    {
        if (!$string) {
            return new ArrayObject();
        }

        $array = SymfonyYaml::parse($string);

        if (!is_array($array)) {
            $array = [];
        }

        return ArrayObject::make($array);
    }
public static function decode ( $ string ) { if ( ! $ string ) { return new ArrayObject ( ) ; } $ array = SymfonyYaml :: parse ( $ string ) ; if ( ! is_array ( $ array ) ) { $ array = [ ] ; } return ArrayObject :: make ( $ array ) ; }
Convert a yaml string to an array.

{@inheritDoc}
Convert a yaml string to an array .