public function field($field) : FormFieldBindingDefiner
    {
        if ($field instanceof FieldBuilderBase) {
            $field = $field->build();
        }

        InvalidArgumentException::verifyInstanceOf(__METHOD__, 'field', $field, IField::class);

        return new FormFieldBindingDefiner($this->class, $field);
    }
public function field($field) : FormFieldBindingDefiner
    {
        if ($field instanceof FieldBuilderBase) {
            $field = $field->build();
        }

        InvalidArgumentException::verifyInstanceOf(__METHOD__, 'field', $field, IField::class);

        return new FormFieldBindingDefiner($this->class, $field);
    }
public function field ( $ field ) : FormFieldBindingDefiner { if ( $ field instanceof FieldBuilderBase ) { $ field = $ field -> build ( ) ; } InvalidArgumentException :: verifyInstanceOf ( __METHOD__ , 'field' , $ field , IField :: class ) ; return new FormFieldBindingDefiner ( $ this -> class , $ field ) ; }
Defines a field in the current form section.

@param IField|FieldBuilderBase $field

@return FormFieldBindingDefiner
Defines a field in the current form section .