public function setResponse(ResponseDeclaration $response){
        $relatedItem = $this->getRelatedItem();
        if(!is_null($relatedItem)){
            $relatedItem->addResponse($response);
        }
        return $this->setAttribute('responseIdentifier', $response);
    }
public function setResponse(ResponseDeclaration $response){
        $relatedItem = $this->getRelatedItem();
        if(!is_null($relatedItem)){
            $relatedItem->addResponse($response);
        }
        return $this->setAttribute('responseIdentifier', $response);
    }
public function setResponse ( ResponseDeclaration $ response ) { $ relatedItem = $ this -> getRelatedItem ( ) ; if ( ! is_null ( $ relatedItem ) ) { $ relatedItem -> addResponse ( $ response ) ; } return $ this -> setAttribute ( 'responseIdentifier' , $ response ) ; }
Define the interaction's response

@access public
@author Sam, <sam@taotesting.com>
@param oat\taoQtiItem\model\qti\ResponseDeclaration response
@return mixed
Define the interaction s response