public function save(array $data, string $filename)
    {
        if (!is_writeable(dirname($filename))) {
            throw new NeuralyzerConfigurationException(dirname($filename) . ' is not writable.');
        }

        file_put_contents($filename, Yaml::dump($data, 4));
    }
public function save(array $data, string $filename)
    {
        if (!is_writeable(dirname($filename))) {
            throw new NeuralyzerConfigurationException(dirname($filename) . ' is not writable.');
        }

        file_put_contents($filename, Yaml::dump($data, 4));
    }
public function save ( array $ data , string $ filename ) { if ( ! is_writeable ( dirname ( $ filename ) ) ) { throw new NeuralyzerConfigurationException ( dirname ( $ filename ) . ' is not writable.' ) ; } file_put_contents ( $ filename , Yaml :: dump ( $ data , 4 ) ) ; }
Save the data to the file as YAML

@param array $data
@param string $filename
@throws NeuralyzerConfigurationException
Save the data to the file as YAML