Type
in package
Table of Contents
- $types : array<string|int, SimpleType>
- __construct() : mixed
- __toString() : mixed
- equals() : bool
- fromNode() : Type
- fromPhpDoc() : mixed
- getWithoutNull() : Type
- isNullable() : bool
- toArginfoType() : ArginfoType|null
- tryToSimpleType() : SimpleType|null
Properties
$types
public
array<string|int, SimpleType>
$types
Methods
__construct()
public
__construct(array<string|int, mixed> $types) : mixed
Parameters
- $types : array<string|int, mixed>
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —equals()
public
static equals(Type|null $a, Type|null $b) : bool
Parameters
Return values
bool —fromNode()
public
static fromNode(Node $node) : Type
Parameters
- $node : Node
Return values
Type —fromPhpDoc()
public
static fromPhpDoc(string $phpDocType) : mixed
Parameters
- $phpDocType : string
Return values
mixed —getWithoutNull()
public
getWithoutNull() : Type
Return values
Type —isNullable()
public
isNullable() : bool
Return values
bool —toArginfoType()
public
toArginfoType() : ArginfoType|null
Return values
ArginfoType|null —tryToSimpleType()
public
tryToSimpleType() : SimpleType|null