protected function buildOutcomeDeclaration(DOMElement $data){

        $outcome = new OutcomeDeclaration($this->extractAttributes($data));
        $data = simplexml_import_dom($data);

        if(isset($data->defaultValue)){
            if(!is_null($data->defaultValue->value)){
                $outcome->setDefaultValue((string) $data->defaultValue->value);
            }
        }

        return $outcome;
    }
protected function buildOutcomeDeclaration(DOMElement $data){

        $outcome = new OutcomeDeclaration($this->extractAttributes($data));
        $data = simplexml_import_dom($data);

        if(isset($data->defaultValue)){
            if(!is_null($data->defaultValue->value)){
                $outcome->setDefaultValue((string) $data->defaultValue->value);
            }
        }

        return $outcome;
    }
protected function buildOutcomeDeclaration ( DOMElement $ data ) { $ outcome = new OutcomeDeclaration ( $ this -> extractAttributes ( $ data ) ) ; $ data = simplexml_import_dom ( $ data ) ; if ( isset ( $ data -> defaultValue ) ) { if ( ! is_null ( $ data -> defaultValue -> value ) ) { $ outcome -> setDefaultValue ( ( string ) $ data -> defaultValue -> value ) ; } } return $ outcome ; }
Short description of method buildOutcomeDeclaration

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  DOMElement data
@return oat\taoQtiItem\model\qti\OutcomeDeclaration
Short description of method buildOutcomeDeclaration