Documentation

FunctionLikeParameter
in package
implements HasAttributesInterface, TypeNode uses CustomMetadataTrait, UnserializeMemoryUsageSuppressionTrait

FinalYes

Table of Contents

Interfaces

HasAttributesInterface
TypeNode

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

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
psalm-external-mutation-free

getAttributeStorages()

Returns a list of AttributeStorages with the same order they appear in the AttributeGroups they come from.

public getAttributeStorages() : array<int, AttributeStorage>
Tags
psalm-mutation-free
Return values
array<int, AttributeStorage>

visitMutable()

public static visitMutable(MutableTypeVisitor $visitor, mixed &$node, bool $cloned) : bool
Parameters
$visitor : MutableTypeVisitor
$node : mixed
$cloned : bool
Tags
phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint

Return values
bool

        
On this page

Search results