fromInternalTypeName() public static méthode

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