public function save(string $filename, bool $debug = false): bool
    {
        $yaml = false;
        try {
            $fileObject = !$debug
                ? new \SplFileObject($filename, 'w')
                : new \SplTempFileObject();

            $yaml = Export::save($fileObject, $this->show());

        } catch (YamlException $e) {
            !$this->_strict ?: die();
        }

        return $yaml;
    }
public function save(string $filename, bool $debug = false): bool
    {
        $yaml = false;
        try {
            $fileObject = !$debug
                ? new \SplFileObject($filename, 'w')
                : new \SplTempFileObject();

            $yaml = Export::save($fileObject, $this->show());

        } catch (YamlException $e) {
            !$this->_strict ?: die();
        }

        return $yaml;
    }
public function save ( string $ filename , bool $ debug = false ) : bool { $ yaml = false ; try { $ fileObject = ! $ debug ? new \ SplFileObject ( $ filename , 'w' ) : new \ SplTempFileObject ( ) ; $ yaml = Export :: save ( $ fileObject , $ this -> show ( ) ) ; } catch ( YamlException $ e ) { ! $ this -> _strict ? : die ( ) ; } return $ yaml ; }
Save Yaml to file

@param   string $filename - Name of file
@param   bool $debug - Save file to tmp or as normal file
@return  bool
Save Yaml to file