public function setComponent(QtiComponent $responseProcessing)
    {
        if ($responseProcessing instanceof ResponseProcessing) {
            parent::setComponent($responseProcessing);
        } else {
            $msg = "The ResponseProcessingEngine class only accepts ResponseProcessing objects to be executed.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setComponent(QtiComponent $responseProcessing)
    {
        if ($responseProcessing instanceof ResponseProcessing) {
            parent::setComponent($responseProcessing);
        } else {
            $msg = "The ResponseProcessingEngine class only accepts ResponseProcessing objects to be executed.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setComponent ( QtiComponent $ responseProcessing ) { if ( $ responseProcessing instanceof ResponseProcessing ) { parent :: setComponent ( $ responseProcessing ) ; } else { $ msg = "The ResponseProcessingEngine class only accepts ResponseProcessing objects to be executed." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the ResponseProcessing object to be executed.

@param \qtism\data\QtiComponent $responseProcessing A ResponseProcessing object.
@throws \InvalidArgumentException If $responseProcessing is not a ResponseProcessing object.
Set the ResponseProcessing object to be executed .