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);
        }
    }