public function getReferredName($name, $referringName) { if ($this->templates === NULL) { throw new \LogicException("Missing template '{$name}'."); } return $name; }