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;
    }