public function getFullyQualifiedClassName($templateFile = null) { if ($templateFile === null) { $templateFile = !is_null($this->template) ? $this->template->getContext()->getFile() : $this->parserContext->getFile(); if ($this->className !== null) { return "\\" . trim(trim($this->namespace, "\\") . "\\" . trim($this->className, "\\"), "\\"); } } return "\\" . trim(trim($this->namespace, "\\") . "\\" . trim($this->formatClassName($templateFile), "\\"), "\\"); }