protected function unmarshallChildrenKnown(DOMElement $element, QtiComponentCollection $children)
    {
        if (($name = $this->getDOMElementAttributeAs($element, 'name')) !== null) {

            $object = new MathOperator($children, MathFunctions::getConstantByName($name));

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

            $object = new MathOperator($children, MathFunctions::getConstantByName($name));

            return $object;
        } else {
            $msg = "The mandatory attribute 'name' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshallChildrenKnown ( DOMElement $ element , QtiComponentCollection $ children ) { if ( ( $ name = $ this -> getDOMElementAttributeAs ( $ element , 'name' ) ) !== null ) { $ object = new MathOperator ( $ children , MathFunctions :: getConstantByName ( $ name ) ) ; return $ object ; } else { $ msg = "The mandatory attribute 'name' is missing from element '" . $ element -> localName . "'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } }
Unmarshall a QTI mathOperator operator element into a MathsOperator object.

@param \DOMElement $element The mathOperator element to unmarshall.
@param \qtism\data\QtiComponentCollection $children A collection containing the child Expression objects composing the Operator.
@return \qtism\data\QtiComponent A MathOperator object.
@throws \UnmarshallingException
Unmarshall a QTI mathOperator operator element into a MathsOperator object .