protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'min', $component->getMin());
        $this->setDOMElementAttribute($element, 'max', $component->getMax());

        if ($component->getStep() !== 1) { // default value of the step attribute is 1.
            $this->setDOMElementAttribute($element, 'step', $component->getStep());
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'min', $component->getMin());
        $this->setDOMElementAttribute($element, 'max', $component->getMax());

        if ($component->getStep() !== 1) { // default value of the step attribute is 1.
            $this->setDOMElementAttribute($element, 'step', $component->getStep());
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'min' , $ component -> getMin ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'max' , $ component -> getMax ( ) ) ; if ( $ component -> getStep ( ) !== 1 ) { // default value of the step attribute is 1. $ this -> setDOMElementAttribute ( $ element , 'step' , $ component -> getStep ( ) ) ; } return $ element ; }
Marshall a RandomInteger object into a DOMElement object.

@param \qtism\data\QtiComponent $component A RandomInteger object.
@return \DOMElement The according DOMElement object.
Marshall a RandomInteger object into a DOMElement object .