protected function save($backup)
    {
        $yaml = $this->lines->join("\n");

        Yaml::parse($yaml, true, true);

        if ($backup) {
            $this->file->copy($this->file->getPath() . '.' . date('Ymd-His'));
        }

        $this->file->update($yaml);
    }