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

            if (Format::isInteger($min)) {
                $min = intval($min);
            }

            if (($max = $this->getDOMElementAttributeAs($element, 'max')) !== null) {

                if (Format::isInteger($max)) {
                    $max = intval($max);
                }

                $object = new AnyN($children, $min, $max);

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

            if (Format::isInteger($min)) {
                $min = intval($min);
            }

            if (($max = $this->getDOMElementAttributeAs($element, 'max')) !== null) {

                if (Format::isInteger($max)) {
                    $max = intval($max);
                }

                $object = new AnyN($children, $min, $max);

                return $object;
            } else {
                $msg = "The mandatory attribute 'max' is missing from element '" . $element->localName . "'.";
                throw new UnmarshallingException($msg, $element);
            }
        } else {
            $msg = "The mandatory attribute 'min' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshallChildrenKnown ( DOMElement $ element , QtiComponentCollection $ children ) { if ( ( $ min = $ this -> getDOMElementAttributeAs ( $ element , 'min' ) ) !== null ) { if ( Format :: isInteger ( $ min ) ) { $ min = intval ( $ min ) ; } if ( ( $ max = $ this -> getDOMElementAttributeAs ( $ element , 'max' ) ) !== null ) { if ( Format :: isInteger ( $ max ) ) { $ max = intval ( $ max ) ; } $ object = new AnyN ( $ children , $ min , $ max ) ; return $ object ; } else { $ msg = "The mandatory attribute 'max' is missing from element '" . $ element -> localName . "'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } } else { $ msg = "The mandatory attribute 'min' is missing from element '" . $ element -> localName . "'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } }
Unmarshall a QTI anyN operator element into an AnyN object.

@param \DOMElement $element The anyN element to unmarshall.
@param \qtism\data\QtiComponentCollection $children A collection containing the child Expression objects composing the Operator.
@return \qtism\data\QtiComponent An AnyN object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException
Unmarshall a QTI anyN operator element into an AnyN object .