Symfony\Component\Form\CollectionField::__construct PHP Method

__construct() public method

Repeats the given field twice to verify the user's input
public __construct ( Symfony\Component\Form\FieldInterface $innerField, array $options = [] )
$innerField Symfony\Component\Form\FieldInterface
$options array
    public function __construct(FieldInterface $innerField, array $options = array())
    {
        $this->prototype = $innerField;

        parent::__construct($innerField->getKey(), $options);
    }