public function save()
    {
        $translationStructure = [];
        foreach ($this->getTranslations() as $translation) {
            $translationStructure = array_merge_recursive(
                $translationStructure,
                $translation->getStructure()
            );
        }

        $dumper = new YamlDumper();
        $yaml = $dumper->dump($translationStructure, 1000);

        file_put_contents(
            $this->buildPath(),
            $yaml
        );
    }
public function save()
    {
        $translationStructure = [];
        foreach ($this->getTranslations() as $translation) {
            $translationStructure = array_merge_recursive(
                $translationStructure,
                $translation->getStructure()
            );
        }

        $dumper = new YamlDumper();
        $yaml = $dumper->dump($translationStructure, 1000);

        file_put_contents(
            $this->buildPath(),
            $yaml
        );
    }
public function save ( ) { $ translationStructure = [ ] ; foreach ( $ this -> getTranslations ( ) as $ translation ) { $ translationStructure = array_merge_recursive ( $ translationStructure , $ translation -> getStructure ( ) ) ; } $ dumper = new YamlDumper ( ) ; $ yaml = $ dumper -> dump ( $ translationStructure , 1000 ) ; file_put_contents ( $ this -> buildPath ( ) , $ yaml ) ; }
Save structure.
Save structure .