public function setTemplateRules(TemplateRuleCollection $templateRules)
    {
        if (count($templateRules) > 0) {
            $this->templateRules = $templateRules;
        } else {
            $msg = "A TemplateProcessing object must be composed of at least one TemplateRule object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setTemplateRules(TemplateRuleCollection $templateRules)
    {
        if (count($templateRules) > 0) {
            $this->templateRules = $templateRules;
        } else {
            $msg = "A TemplateProcessing object must be composed of at least one TemplateRule object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setTemplateRules ( TemplateRuleCollection $ templateRules ) { if ( count ( $ templateRules ) > 0 ) { $ this -> templateRules = $ templateRules ; } else { $ msg = "A TemplateProcessing object must be composed of at least one TemplateRule object, none given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the collection of TemplateRule objects composing the template processing.

@param \qtism\data\rules\TemplateRuleCollection $templateRules A collection of TemplateRule objects.
@throws \InvalidArgumentException If $templateRules does not contain any TemplateRule objects.
Set the collection of TemplateRule objects composing the template processing .