protected function marshall(QtiComponent $component)
    {
        $element = parent::marshall($component);
        $this->setDOMElementAttribute($element, 'outcomeIdentifier', $component->getOutcomeIdentifier());

        $weightIdentifier = $component->getWeightIdentifier();
        if (!empty($weightIdentifier)) {
            $this->setDOMElementAttribute($element, 'weightIdentifier', $weightIdentifier);
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = parent::marshall($component);
        $this->setDOMElementAttribute($element, 'outcomeIdentifier', $component->getOutcomeIdentifier());

        $weightIdentifier = $component->getWeightIdentifier();
        if (!empty($weightIdentifier)) {
            $this->setDOMElementAttribute($element, 'weightIdentifier', $weightIdentifier);
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = parent :: marshall ( $ component ) ; $ this -> setDOMElementAttribute ( $ element , 'outcomeIdentifier' , $ component -> getOutcomeIdentifier ( ) ) ; $ weightIdentifier = $ component -> getWeightIdentifier ( ) ; if ( ! empty ( $ weightIdentifier ) ) { $ this -> setDOMElementAttribute ( $ element , 'weightIdentifier' , $ weightIdentifier ) ; } return $ element ; }
Marshall an outcomeMaximum object in its DOMElement equivalent.

@param \qtism\data\QtiComponent A OutcomeMaximum object.
@return \DOMElement The corresponding outcomeMaximum QTI element.
Marshall an outcomeMaximum object in its DOMElement equivalent .