public function setOutcomeRules(OutcomeRuleCollection $outcomeRules)
    {
        if (count($outcomeRules) > 0) {
            $this->outcomeRules = $outcomeRules;
        } else {
            $msg = "An OutcomeIf object must be bound to at least one OutcomeRule.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setOutcomeRules(OutcomeRuleCollection $outcomeRules)
    {
        if (count($outcomeRules) > 0) {
            $this->outcomeRules = $outcomeRules;
        } else {
            $msg = "An OutcomeIf object must be bound to at least one OutcomeRule.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setOutcomeRules ( OutcomeRuleCollection $ outcomeRules ) { if ( count ( $ outcomeRules ) > 0 ) { $ this -> outcomeRules = $ outcomeRules ; } else { $ msg = "An OutcomeIf object must be bound to at least one OutcomeRule." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the OutcomeRule objects to be evaluated as sub expressions if the expression
evaluated with the If statement returns true.

@param \qtism\data\rules\OutcomeRuleCollection $outcomeRules A collection of OutcomeRule objects.
@throws \InvalidArgumentException If $outcomeRules is an empty collection.
Set the OutcomeRule objects to be evaluated as sub expressions if the expression evaluated with the If statement returns true .