getLogicalName() public method

The template name acts as a unique identifier for the template.
public getLogicalName ( ) : string
return string The template name
 public function setTemplate($name, $content)
 {
     $template = new TemplateReference($name, 'php');
     $this->templates[$template->getLogicalName()] = $content;
 }