CallableTypeNode
in package
implements
TypeNode
uses
NodeAttributes
Table of Contents
Interfaces
Properties
- $identifier : IdentifierTypeNode
- $parameters : array<string|int, CallableTypeParameterNode>
- $returnType : TypeNode
- $templateTypes : array<string|int, TemplateTagValueNode>
- $attributes : array<string, mixed>
Methods
- __construct() : mixed
- __toString() : string
- getAttribute() : mixed
- hasAttribute() : bool
- setAttribute() : void
Properties
$identifier
public
IdentifierTypeNode
$identifier
$parameters
public
array<string|int, CallableTypeParameterNode>
$parameters
$returnType
public
TypeNode
$returnType
$templateTypes
public
array<string|int, TemplateTagValueNode>
$templateTypes
$attributes
private
array<string, mixed>
$attributes
= []
Methods
__construct()
public
__construct(IdentifierTypeNode $identifier, array<string|int, CallableTypeParameterNode> $parameters, TypeNode $returnType, array<string|int, TemplateTagValueNode> $templateTypes) : mixed
Parameters
- $identifier : IdentifierTypeNode
- $parameters : array<string|int, CallableTypeParameterNode>
- $returnType : TypeNode
- $templateTypes : array<string|int, TemplateTagValueNode>
__toString()
public
__toString() : string
Return values
stringgetAttribute()
public
getAttribute(string $key) : mixed
Parameters
- $key : string
hasAttribute()
public
hasAttribute(string $key) : bool
Parameters
- $key : string
Return values
boolsetAttribute()
public
setAttribute(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed