public function setTemplate($name, $content) { $template = new TemplateReference($name, 'php'); $this->templates[$template->getLogicalName()] = $content; }