Phan\Language\Type::getName PHP 메소드

getName() 공개 메소드

public getName ( ) : string
리턴 string The name associated with this type
    public function getName() : string
    {
        return $this->name;
    }

Usage Example

예제 #1
0
파일: Type.php 프로젝트: etsy/phan
 /**
  * @param Type $type
  * The base type of this generic type referencing a
  * generic class
  *
  * @param UnionType[] $template_parameter_type_list
  * A map from a template type identifier to a
  * concrete union type
  */
 public static function fromType(Type $type, $template_parameter_type_list) : Type
 {
     return self::make($type->getNamespace(), $type->getName(), $template_parameter_type_list);
 }