Interfaces, Classes and Traits
- TypeNode
Table of Contents
-
VARIANCE_BIVARIANT
= 'bivariant'
-
VARIANCE_CONTRAVARIANT
= 'contravariant'
-
VARIANCE_COVARIANT
= 'covariant'
-
VARIANCE_INVARIANT
= 'invariant'
-
$genericTypes
: array<string|int, TypeNode>
-
$type
: IdentifierTypeNode
-
$variances
: array<string|int, self::VARIANCE_*>
-
$attributes
: array<string, mixed>
-
__construct()
: mixed
-
__toString()
: string
-
getAttribute()
: mixed
-
hasAttribute()
: bool
-
setAttribute()
: void
VARIANCE_BIVARIANT
public
mixed
VARIANCE_BIVARIANT
= 'bivariant'
VARIANCE_CONTRAVARIANT
public
mixed
VARIANCE_CONTRAVARIANT
= 'contravariant'
VARIANCE_COVARIANT
public
mixed
VARIANCE_COVARIANT
= 'covariant'
VARIANCE_INVARIANT
public
mixed
VARIANCE_INVARIANT
= 'invariant'
$genericTypes
public
array<string|int, TypeNode>
$genericTypes
$type
public
IdentifierTypeNode
$type
$variances
public
array<string|int, self::VARIANCE_*>
$variances
$attributes
private
array<string, mixed>
$attributes
= []
__construct()
public
__construct(IdentifierTypeNode $type, array<string|int, TypeNode> $genericTypes[, array<string|int, self::VARIANCE_*> $variances = [] ]) : mixed
Parameters
-
$type
: IdentifierTypeNode
-
-
$genericTypes
: array<string|int, TypeNode>
-
-
$variances
: array<string|int, self::VARIANCE_*>
= []
-
Return values
mixed
—
__toString()
public
__toString() : string
Return values
string
—
getAttribute()
public
getAttribute(string $key) : mixed
Parameters
-
$key
: string
-
Return values
mixed
—
hasAttribute()
public
hasAttribute(string $key) : bool
Parameters
-
$key
: string
-
Return values
bool
—
setAttribute()
public
setAttribute(string $key, mixed $value) : void
Parameters
-
$key
: string
-
-
$value
: mixed
-
Return values
void
—