CallableTypeParameterNode
in package
implements
Node
Uses
NodeAttributes
Interfaces, Classes and Traits
Table of Contents
- $isOptional : bool
- $isReference : bool
- $isVariadic : bool
- $parameterName : string
- $type : TypeNode
- $attributes : array<string, mixed>
- __construct() : mixed
- __toString() : string
- getAttribute() : mixed
- hasAttribute() : bool
- setAttribute() : void
Properties
$isOptional
public
bool
$isOptional
$isReference
public
bool
$isReference
$isVariadic
public
bool
$isVariadic
$parameterName
public
string
$parameterName
(may be empty)
$type
public
TypeNode
$type
$attributes
private
array<string, mixed>
$attributes
= []
Methods
__construct()
public
__construct(TypeNode $type, bool $isReference, bool $isVariadic, string $parameterName, bool $isOptional) : mixed
Parameters
- $type : TypeNode
- $isReference : bool
- $isVariadic : bool
- $parameterName : string
- $isOptional : bool
Return values
mixed —__toString()
public
__toString() : string
Return values
string —getAttribute()
public
getAttribute(string $key) : mixed
Parameters
- $key : string
Return values
mixed —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