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

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