public function field(&$property) : FormObjectFieldNameBuilder
    {
        $typeDefiner  = $this->class->property($property);
        $propertyName = $this->loadTypeDefiner($typeDefiner);

        return FormObjectFieldNameBuilder::callback(function ($fieldName) use ($propertyName) {
            $this->fieldPropertyMap[$fieldName] = $propertyName;
        })->value($property);
    }
public function field(&$property) : FormObjectFieldNameBuilder
    {
        $typeDefiner  = $this->class->property($property);
        $propertyName = $this->loadTypeDefiner($typeDefiner);

        return FormObjectFieldNameBuilder::callback(function ($fieldName) use ($propertyName) {
            $this->fieldPropertyMap[$fieldName] = $propertyName;
        })->value($property);
    }
public function field ( & $ property ) : FormObjectFieldNameBuilder { $ typeDefiner = $ this -> class -> property ( $ property ) ; $ propertyName = $ this -> loadTypeDefiner ( $ typeDefiner ) ; return FormObjectFieldNameBuilder :: callback ( function ( $ fieldName ) use ( $ propertyName ) { $ this -> fieldPropertyMap [ $ fieldName ] = $ propertyName ; } ) -> value ( $ property ) ; }
Binds the property to the defined field on the form object.

@param mixed $property

@return FormObjectFieldNameBuilder
@throws InvalidPropertyDefinitionException
Binds the property to the defined field on the form object .