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

            $object = new PatternMatch($children, $pattern);

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

            $object = new PatternMatch($children, $pattern);

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

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