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

        $this->setDOMElementAttribute($element, 'shape', QtiShape::getNameByConstant($component->getShape()));
        $this->setDOMElementAttribute($element, 'coords', $component->getCoords());
        $this->setDOMElementAttribute($element, 'mappedValue', $component->getMappedValue());

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

        $this->setDOMElementAttribute($element, 'shape', QtiShape::getNameByConstant($component->getShape()));
        $this->setDOMElementAttribute($element, 'coords', $component->getCoords());
        $this->setDOMElementAttribute($element, 'mappedValue', $component->getMappedValue());

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'shape' , QtiShape :: getNameByConstant ( $ component -> getShape ( ) ) ) ; $ this -> setDOMElementAttribute ( $ element , 'coords' , $ component -> getCoords ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'mappedValue' , $ component -> getMappedValue ( ) ) ; return $ element ; }
Marshall an AreaMapEntry object into a DOMElement object.

@param \qtism\data\QtiComponent $component An AreaMapEntry object.
@return \DOMElement The according DOMElement object.
Marshall an AreaMapEntry object into a DOMElement object .