Documentation

GenericTypeNode
in package
implements TypeNode Uses NodeAttributes

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

Constants

VARIANCE_CONTRAVARIANT

public mixed VARIANCE_CONTRAVARIANT = 'contravariant'

Properties

Methods

__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

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

Search results