コード例 #1
0
ファイル: CompilationContext.php プロジェクト: NumbDai/zephir
 /**
  * Transform class/interface name to FQN format
  * @todo WHY WHY :'(
  *
  * @param string $className
  * @return string
  */
 public function getFullName($className)
 {
     return Utils::getFullName($className, $this->classDefinition->getNamespace(), $this->aliasManager);
 }
コード例 #2
0
 /**
  * Transform class/interface name to FQN format
  * @todo WHY WHY :'(
  *
  * @param string $className
  * @return string
  */
 public function getFullName($className)
 {
     $namespace = isset($this->currentMethod) && $this->currentMethod instanceof FunctionDefinition ? $this->currentMethod->getNamespace() : $this->classDefinition->getNamespace();
     return Utils::getFullName($className, $namespace, $this->aliasManager);
 }