Type Resolver

Generic extends Object_
in package

FinalYes

Value Object representing a type with generics.

Tags
psalm-immutable

Table of Contents

Properties

$fqsen  : Fqsen|null
$types  : array<string|int, Type>

Methods

__construct()  : mixed
Initializes this object with an optional FQSEN, if not provided this object is considered 'untyped'.
__toString()  : string
Returns a rendered output of the Type as it would be used in a DocBlock.
getFqsen()  : Fqsen|null
Returns the FQSEN associated with this object.
getTypes()  : array<string|int, Type>

Properties

Methods

__construct()

Initializes this object with an optional FQSEN, if not provided this object is considered 'untyped'.

public __construct(Fqsen|null $fqsen, array<string|int, Type$types) : mixed
Parameters
$fqsen : Fqsen|null
$types : array<string|int, Type>

__toString()

Returns a rendered output of the Type as it would be used in a DocBlock.

public __toString() : string
Return values
string

getFqsen()

Returns the FQSEN associated with this object.

public getFqsen() : Fqsen|null
Return values
Fqsen|null

getTypes()

public getTypes() : array<string|int, Type>
Return values
array<string|int, Type>

        
On this page

Search results