FunctionLikeParameter
in package
implements
HasAttributesInterface, TypeNode
uses
CustomMetadataTrait, UnserializeMemoryUsageSuppressionTrait
FinalYes
Table of Contents
Interfaces
Properties
- $assert_untainted : bool
- $attributes : array<int, AttributeStorage>
- $by_ref : bool
- $custom_metadata : array<string, _MetadataEntry>
- $default_type : Union|UnresolvedConstantComponent|null
- $description : string|null
- $expect_variable : bool
- $has_docblock_type : bool
- $is_nullable : bool
- $is_optional : bool
- $is_variadic : bool
- $location : CodeLocation|null
- $name : string
- $out_type : Union|null
- $promoted_property : bool
- $signature_type : Union|null
- $signature_type_location : CodeLocation|null
- $sinks : array<string|int, string>|null
- $type : Union|null
- $type_inferred : bool
- $type_location : CodeLocation|null
Methods
- __construct() : mixed
- __unserialize() : void
- getAttributeStorages() : array<int, AttributeStorage>
- Returns a list of AttributeStorages with the same order they appear in the AttributeGroups they come from.
- getId() : string
- setType() : self
- visitMutable() : bool
Properties
$assert_untainted
public
bool
$assert_untainted
= false
$attributes
public
array<int, AttributeStorage>
$attributes
= []
$by_ref
public
bool
$by_ref
$custom_metadata
public
array<string, _MetadataEntry>
$custom_metadata
= []
$default_type
public
Union|UnresolvedConstantComponent|null
$default_type
= null
$description
public
string|null
$description
= null
$expect_variable
public
bool
$expect_variable
= false
$has_docblock_type
public
bool
$has_docblock_type
= false
$is_nullable
public
bool
$is_nullable
= false
$is_optional
public
bool
$is_optional
= true
$is_variadic
public
bool
$is_variadic
= false
$location
public
CodeLocation|null
$location
= null
$name
public
string
$name
$out_type
public
Union|null
$out_type
= null
$promoted_property
public
bool
$promoted_property
= false
$signature_type
public
Union|null
$signature_type
= null
$signature_type_location
public
CodeLocation|null
$signature_type_location
= null
$sinks
public
array<string|int, string>|null
$sinks
= null
$type
public
Union|null
$type
= null
$type_inferred
public
bool
$type_inferred
= false
$type_location
public
CodeLocation|null
$type_location
= null
Methods
__construct()
public
__construct(string $name, bool $by_ref[, Union|null $type = null ][, Union|null $signature_type = null ][, CodeLocation|null $location = null ][, CodeLocation|null $type_location = null ][, bool $is_optional = true ][, bool $is_nullable = false ][, bool $is_variadic = false ][, Union|UnresolvedConstantComponent|null $default_type = null ][, Union|null $out_type = null ]) : mixed
Parameters
- $name : string
-
parameter name, without the "$" prefix
- $by_ref : bool
- $type : Union|null = null
- $signature_type : Union|null = null
- $location : CodeLocation|null = null
- $type_location : CodeLocation|null = null
- $is_optional : bool = true
- $is_nullable : bool = false
- $is_variadic : bool = false
- $default_type : Union|UnresolvedConstantComponent|null = null
- $out_type : Union|null = null
Tags
__unserialize()
public
__unserialize(array<string|int, mixed> $properties) : void
Parameters
- $properties : array<string|int, mixed>
getAttributeStorages()
Returns a list of AttributeStorages with the same order they appear in the AttributeGroups they come from.
public
getAttributeStorages() : array<int, AttributeStorage>
Tags
Return values
array<int, AttributeStorage>getId()
public
getId() : string
Tags
Return values
stringsetType()
public
setType(Union $type) : self
Parameters
- $type : Union
Tags
Return values
selfvisitMutable()
public
static visitMutable(MutableTypeVisitor $visitor, mixed &$node, bool $cloned) : bool
Parameters
- $visitor : MutableTypeVisitor
- $node : mixed
- $cloned : bool