public function setOutcomeRules(ResponseRuleCollection $responseRules)
    {
        if (count($responseRules) > 0) {
            $this->responseRules = $responseRules;
        } else {
            $msg = "A ResponseElse object must be bound to at least one ResponseRule object.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setOutcomeRules(ResponseRuleCollection $responseRules)
    {
        if (count($responseRules) > 0) {
            $this->responseRules = $responseRules;
        } else {
            $msg = "A ResponseElse object must be bound to at least one ResponseRule object.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setOutcomeRules ( ResponseRuleCollection $ responseRules ) { if ( count ( $ responseRules ) > 0 ) { $ this -> responseRules = $ responseRules ; } else { $ msg = "A ResponseElse object must be bound to at least one ResponseRule object." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the ResponseRule objects to be evaluated.

@param \qtism\data\rules\ResponseRuleCollection $responseRules A collection of ResponseRule objects.
@throws \InvalidArgumentException If $responseRules is an empty collection.
Set the ResponseRule objects to be evaluated .