protected function unmarshall(DOMElement $element)
    {
        if (($sourceValue = $this->getDOMElementAttributeAs($element, 'sourceValue', 'float')) !== null) {

            if (($targetValue = $this->getDOMElementAttributeAs($element, 'targetValue', 'string')) !== null) {
                $object = new InterpolationTableEntry($sourceValue, Utils::stringToDatatype($targetValue, $this->getBaseType()));

                if (($includeBoundary = $this->getDOMElementAttributeAs($element, 'includeBoundary', 'boolean')) !== null) {
                    $object->setIncludeBoundary($includeBoundary);
                }

                return $object;
            }
        } else {
            $msg = "The mandatory attribute 'sourceValue' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshall(DOMElement $element)
    {
        if (($sourceValue = $this->getDOMElementAttributeAs($element, 'sourceValue', 'float')) !== null) {

            if (($targetValue = $this->getDOMElementAttributeAs($element, 'targetValue', 'string')) !== null) {
                $object = new InterpolationTableEntry($sourceValue, Utils::stringToDatatype($targetValue, $this->getBaseType()));

                if (($includeBoundary = $this->getDOMElementAttributeAs($element, 'includeBoundary', 'boolean')) !== null) {
                    $object->setIncludeBoundary($includeBoundary);
                }

                return $object;
            }
        } else {
            $msg = "The mandatory attribute 'sourceValue' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshall ( DOMElement $ element ) { if ( ( $ sourceValue = $ this -> getDOMElementAttributeAs ( $ element , 'sourceValue' , 'float' ) ) !== null ) { if ( ( $ targetValue = $ this -> getDOMElementAttributeAs ( $ element , 'targetValue' , 'string' ) ) !== null ) { $ object = new InterpolationTableEntry ( $ sourceValue , Utils :: stringToDatatype ( $ targetValue , $ this -> getBaseType ( ) ) ) ; if ( ( $ includeBoundary = $ this -> getDOMElementAttributeAs ( $ element , 'includeBoundary' , 'boolean' ) ) !== null ) { $ object -> setIncludeBoundary ( $ includeBoundary ) ; } return $ object ; } } else { $ msg = "The mandatory attribute 'sourceValue' is missing from element '" . $ element -> localName . "'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } }
Unmarshall a DOMElement object corresponding to a QTI InterpolationEntry element.

@param \DOMElement $element A DOMElement object.
@return \qtism\data\QtiComponent An InterpolationTableEntry object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException
Unmarshall a DOMElement object corresponding to a QTI InterpolationEntry element .