public function setComponent(QtiComponent $expression)
    {
        if ($expression instanceof Expression) {
            parent::setComponent($expression);
        } else {
            $msg = "The ExpressionEngine class only accepts QTI Data Model Expression objects to be processed.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setComponent(QtiComponent $expression)
    {
        if ($expression instanceof Expression) {
            parent::setComponent($expression);
        } else {
            $msg = "The ExpressionEngine class only accepts QTI Data Model Expression objects to be processed.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setComponent ( QtiComponent $ expression ) { if ( $ expression instanceof Expression ) { parent :: setComponent ( $ expression ) ; } else { $ msg = "The ExpressionEngine class only accepts QTI Data Model Expression objects to be processed." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the Expression object to be processed.

@param \qtism\data\QtiComponent $expression An Expression object.
@throws \InvalidArgumentException If $expression is not an Expression object.
Set the Expression object to be processed .