public function setField(FormInput $input) { $fieldName = $input->getName(); $this->formFields[$fieldName] = $input; }