implements |
TypeNode |
|---|---|
uses |
NodeAttributes |
A template declared in a generic type argument, like the "T of Foo" in
class-string-map<T of Foo, T> or the "K of key-of
The template is scoped to the generic type it is declared in. The parser reads it in the arguments of every generic type; which types give it a meaning is up to the tool resolving the types.
| Methods | ||
|---|---|---|
public
|
__construct(string $name, TypeNode $bound)
|
# |
public
|
__toString(): string
|
# |
public
static
|
__set_state(array<string, mixed> $properties): self
|
# |
| Methods used from PHPStan\PhpDocParser\Ast\NodeAttributes |
|---|
setAttribute(), hasAttribute(), getAttribute() |
| Properties | |||
|---|---|---|---|
public
|
string
|
$name
|
# |
public
|
TypeNode
|
$bound
|
# |