public function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement($component->getQtiClassName());
        $this->setDOMElementAttribute($element, 'identifier', $component->getIdentifier());
        $this->setDOMElementAttribute($element, 'minConstraint', $component->getMinConstraint());
        $this->setDOMElementAttribute($element, 'maxConstraint', $component->getMaxConstraint());

        return $element;
    }
public function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement($component->getQtiClassName());
        $this->setDOMElementAttribute($element, 'identifier', $component->getIdentifier());
        $this->setDOMElementAttribute($element, 'minConstraint', $component->getMinConstraint());
        $this->setDOMElementAttribute($element, 'maxConstraint', $component->getMaxConstraint());

        return $element;
    }
public function marshall ( QtiComponent $ component ) { $ element = self :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'identifier' , $ component -> getIdentifier ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'minConstraint' , $ component -> getMinConstraint ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'maxConstraint' , $ component -> getMaxConstraint ( ) ) ; return $ element ; }
Marshall an AssociationValidityConstraint object to its XML counterpart.

@param \qtism\data\QtiComponent $component
@return \DOMElement
Marshall an AssociationValidityConstraint object to its XML counterpart .