Phan\Language\Type::getName PHP Method

getName() public method

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

Usage Example

Example #1
0
File: Type.php Project: 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);
 }