private function addField(SnippetField $field) { $this->fields->set($field->getFieldName(), $field); return $this; }