public function saveYaml($fileName) { $yamlParser = new YAMLParser(); file_put_contents($fileName, $yamlParser->toYaml($this->all())); }