public function getResponse(){
        $returnValue = null;

        $responseAttribute = $this->getAttribute('responseIdentifier');
        if(!is_null($responseAttribute)){
            $idenfierBaseType = $responseAttribute->getValue(true);
            if(!is_null($idenfierBaseType)){
                $returnValue = $idenfierBaseType->getReferencedObject();
            }else{
                $responseDeclaration = new ResponseDeclaration();
                if($this->setResponse($responseDeclaration)){
                    $returnValue = $responseDeclaration;
                }else{
                    throw new QtiModelException('cannot create the interaction response');
                }
            }
        }

        return $returnValue;
    }
public function getResponse(){
        $returnValue = null;

        $responseAttribute = $this->getAttribute('responseIdentifier');
        if(!is_null($responseAttribute)){
            $idenfierBaseType = $responseAttribute->getValue(true);
            if(!is_null($idenfierBaseType)){
                $returnValue = $idenfierBaseType->getReferencedObject();
            }else{
                $responseDeclaration = new ResponseDeclaration();
                if($this->setResponse($responseDeclaration)){
                    $returnValue = $responseDeclaration;
                }else{
                    throw new QtiModelException('cannot create the interaction response');
                }
            }
        }

        return $returnValue;
    }
public function getResponse ( ) { $ returnValue = null ; $ responseAttribute = $ this -> getAttribute ( 'responseIdentifier' ) ; if ( ! is_null ( $ responseAttribute ) ) { $ idenfierBaseType = $ responseAttribute -> getValue ( true ) ; if ( ! is_null ( $ idenfierBaseType ) ) { $ returnValue = $ idenfierBaseType -> getReferencedObject ( ) ; } else { $ responseDeclaration = new ResponseDeclaration ( ) ; if ( $ this -> setResponse ( $ responseDeclaration ) ) { $ returnValue = $ responseDeclaration ; } else { throw new QtiModelException ( 'cannot create the interaction response' ) ; } } } return $ returnValue ; }
Get the response declaration associated to the interaction
If no response exists, one will be created

@access public
@author Sam, <sam@taotesting.com>
@return oat\taoQtiItem\model\qti\ResponseDeclaration
Get the response declaration associated to the interaction If no response exists one will be created