public function setComponent(QtiComponent $outcomeProcessing)
    {
        if ($outcomeProcessing instanceof OutcomeProcessing) {
            parent::setComponent($outcomeProcessing);
        } else {
            $msg = "The OutcomeProcessingEngine class only accepts OutcomeProcessing objects to be executed.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setComponent(QtiComponent $outcomeProcessing)
    {
        if ($outcomeProcessing instanceof OutcomeProcessing) {
            parent::setComponent($outcomeProcessing);
        } else {
            $msg = "The OutcomeProcessingEngine class only accepts OutcomeProcessing objects to be executed.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setComponent ( QtiComponent $ outcomeProcessing ) { if ( $ outcomeProcessing instanceof OutcomeProcessing ) { parent :: setComponent ( $ outcomeProcessing ) ; } else { $ msg = "The OutcomeProcessingEngine class only accepts OutcomeProcessing objects to be executed." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the OutcomeProcessing object to be executed by the engine depending
on the current context.

@param \qtism\data\QtiComponent $outcomeProcessing An OutcomeProcessing object.
@throws \InvalidArgumentException If $outcomeProcessing is not An OutcomeProcessing object.
Set the OutcomeProcessing object to be executed by the engine depending on the current context .