FormBuilderInterface
add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array())
Adds a new field to this group. A field must have a unique name within the group. Otherwise the existing field is overwritten. If you add a nested group, this group should also be represented in the object hierarchy.
Parameters string|int|FormBuilderInterface
$child string|null $type array $options Return Value FormBuilderInterface The builder object