Documentation

GenericTypeNode
in package
implements TypeNode uses NodeAttributes

Table of Contents

Interfaces

TypeNode

Constants

VARIANCE_BIVARIANT  = 'bivariant'
VARIANCE_CONTRAVARIANT  = 'contravariant'
VARIANCE_COVARIANT  = 'covariant'
VARIANCE_INVARIANT  = 'invariant'

Properties

$genericTypes  : array<string|int, TypeNode>
$type  : IdentifierTypeNode
$variances  : array<string|int, self::VARIANCE_*>
$attributes  : array<string, mixed>

Methods

__construct()  : mixed
__toString()  : string
getAttribute()  : mixed
hasAttribute()  : bool
setAttribute()  : void

Constants

VARIANCE_CONTRAVARIANT

public mixed VARIANCE_CONTRAVARIANT = 'contravariant'

Properties

Methods

getAttribute()

public getAttribute(string $key) : mixed
Parameters
$key : string

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

        
On this page

Search results