src/Form/FormView.php
public function addField(Field $fields, $name = null)
    {
        $name = $name ?: $fields->getName();
        $this->fields[$name] = $fields;

        return $this;
    }
public function addField(Field $fields, $name = null)
    {
        $name = $name ?: $fields->getName();
        $this->fields[$name] = $fields;

        return $this;
    }
@param Field         $fields
@param null|string   $name

@return $this