fromInternalTypeName() public static method

public static fromInternalTypeName ( string $type_name ) : Type
$type_name string The name of the internal type such as 'int'
return Type Get a type for the given type name
Example #1
0
 /**
  * @return Type
  * Get a type for the given object
  */
 public static function fromObject($object) : Type
 {
     return Type::fromInternalTypeName(gettype($object));
 }