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

        if ($component->hasMinTime() === true) {
            $this->setDOMElementAttribute($element, 'minTime', $component->getMinTime()->getSeconds(true));
        }

        if ($component->hasMaxTime() === true) {
            $this->setDOMElementAttribute($element, 'maxTime', $component->getMaxTime()->getSeconds(true));
        }

        $this->setDOMElementAttribute($element, 'allowLateSubmission', $component->doesAllowLateSubmission());

        return $element;
    }