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

        call_user_func($this->callback, $field);

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

        call_user_func($this->callback, $field);

        return $field;
    }
public function to ( $ field ) { if ( $ field instanceof FieldBuilderBase ) { $ field = $ field -> build ( ) ; } call_user_func ( $ this -> callback , $ field ) ; return $ field ; }
Binds the property to the supplied field.

@param IField|FieldBuilderBase $field

@return IField
Binds the property to the supplied field .