public function finalize(FinalizedClassDefinition $class = null) : FinalizedFormObjectDefinition
    {
        return new FinalizedFormObjectDefinition(
                $class ?: $this->class->finalize(),
                $this->propertyFieldMap,
                $this->build()
        );
    }
public function finalize(FinalizedClassDefinition $class = null) : FinalizedFormObjectDefinition
    {
        return new FinalizedFormObjectDefinition(
                $class ?: $this->class->finalize(),
                $this->propertyFieldMap,
                $this->build()
        );
    }
public function finalize ( FinalizedClassDefinition $ class = null ) : FinalizedFormObjectDefinition { return new FinalizedFormObjectDefinition ( $ class ? : $ this -> class -> finalize ( ) , $ this -> propertyFieldMap , $ this -> build ( ) ) ; }
Finalizes the form definition.

@param FinalizedClassDefinition $class

@return FinalizedFormObjectDefinition
@throws \Dms\Core\Model\Object\IncompleteClassDefinitionException
Finalizes the form definition .