fromInternalTypeName() 공개 정적인 메소드

public static fromInternalTypeName ( string $type_name ) : Type
$type_name string The name of the internal type such as 'int'
리턴 Type Get a type for the given type name
예제 #1
0
파일: Type.php 프로젝트: ablyler/phan
 /**
  * @return Type
  * Get a type for the given object
  */
 public static function fromObject($object) : Type
 {
     return Type::fromInternalTypeName(gettype($object));
 }