public function __construct(SnippetTemplateField $templateField) { $this->setTemplateField($templateField); $this->fieldName = $this->getFieldName(); }