src/File/Yaml.php
public function encode(array $options = [])
    {
        $options = array_merge(
            [
                'inline'                        => 2,
                'indent'                        => 4,
                'exceptionOnInvalidType'        => false,
                'objectSupport'                 => false
            ],
            $options
        );

        return SymfonyYaml::dump(
            $this->getContents(),
            $options['inline'],
            $options['indent'],
            $options['exceptionOnInvalidType'],
            $options['objectSupport']
        );
    }
public function encode(array $options = [])
    {
        $options = array_merge(
            [
                'inline'                        => 2,
                'indent'                        => 4,
                'exceptionOnInvalidType'        => false,
                'objectSupport'                 => false
            ],
            $options
        );

        return SymfonyYaml::dump(
            $this->getContents(),
            $options['inline'],
            $options['indent'],
            $options['exceptionOnInvalidType'],
            $options['objectSupport']
        );
    }
public function encode ( array $ options = [ ] ) { $ options = array_merge ( [ 'inline' => 2 , 'indent' => 4 , 'exceptionOnInvalidType' => false , 'objectSupport' => false ] , $ options ) ; return SymfonyYaml :: dump ( $ this -> getContents ( ) , $ options [ 'inline' ] , $ options [ 'indent' ] , $ options [ 'exceptionOnInvalidType' ] , $ options [ 'objectSupport' ] ) ; }
Encodes data in Yaml format.

@param array $options - Options.

@throws EncodeException

@return string
Encodes data in Yaml format .