Generic
extends Object_
in package
FinalYes
Value Object representing a type with generics.
Tags
Table of Contents
Properties
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
$fqsen
protected
Fqsen|null
$fqsen
$types
private
array<string|int, Type>
$types
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
stringgetFqsen()
Returns the FQSEN associated with this object.
public
getFqsen() : Fqsen|null
Return values
Fqsen|nullgetTypes()
public
getTypes() : array<string|int, Type>