FunctionStorage
extends FunctionLikeStorage
in package
uses
UnserializeMemoryUsageSuppressionTrait
FinalYes
Table of Contents
Properties
- $added_taints : array<string|int, string>
- $allow_named_arg_calls : bool
- $assertions : array<int, Possibilities>
- $attributes : array<int, AttributeStorage>
- $byref_uses : array<string, bool>
- $cased_name : string|null
- $conditionally_removed_taints : array<string|int, Union>
- $custom_metadata : array<string, _MetadataEntry>
- $defined_constants : array<string, Union>
- $deprecated : bool|null
- $description : string|null
- $docblock_issues : array<int, CodeIssue>
- $global_types : array<string, Union>
- $global_variables : array<string, bool>
- $has_undertyped_native_parameters : bool
- $has_visitor_issues : bool
- $has_yield : bool
- $if_false_assertions : array<int, Possibilities>
- $if_true_assertions : array<int, Possibilities>
- $internal : array<int, non-empty-string>
- $is_static : bool
- $location : CodeLocation|null
- $mutation_free : bool
- $param_lookup : array<string, bool>
- $params : array<int, FunctionLikeParameter>
- $proxy_calls : array<int, array{fqn: string, params: int[], return: bool}>|null
- $public_api : bool
- $pure : bool
- $removed_taints : array<string|int, string>
- $required_param_count : int|null
- $return_source_params : array<int, string>
- $return_type : Union|null
- $return_type_description : string|null
- $return_type_location : CodeLocation|null
- $returns_by_ref : bool
- $signature_return_type : Union|null
- $signature_return_type_location : CodeLocation|null
- $specialize_call : bool
- Whether or not the function output is dependent solely on input - a function can be impure but still have this property (e.g. var_export). Useful for taint analysis.
- $stmt_location : CodeLocation|null
- $suppressed_issues : array<int, string>
- $taint_source_types : array<string|int, string>
- $template_types : array<string|int, mixed>|null
- An array holding the class template "as" types.
- $throw_locations : array<string, CodeLocation>
- $throws : array<string, bool>
- $unused_docblock_parameters : array<string, CodeLocation>
- $variadic : bool
Methods
- __toString() : string
- __unserialize() : void
- getAttributeStorages() : array<int, AttributeStorage>
- Returns a list of AttributeStorages with the same order they appear in the AttributeGroups they come from.
- getCompletionSignature() : string
- getHoverMarkdown() : string
- Used in the Language Server
Properties
$added_taints
public
array<string|int, string>
$added_taints
= []
$allow_named_arg_calls
public
bool
$allow_named_arg_calls
= true
$assertions
public
array<int, Possibilities>
$assertions
= []
$attributes
public
array<int, AttributeStorage>
$attributes
= []
$byref_uses
public
array<string, bool>
$byref_uses
= []
$cased_name
public
string|null
$cased_name
= null
$conditionally_removed_taints
public
array<string|int, Union>
$conditionally_removed_taints
= []
$custom_metadata
public
array<string, _MetadataEntry>
$custom_metadata
= []
$defined_constants
public
array<string, Union>
$defined_constants
= []
$deprecated
public
bool|null
$deprecated
= null
$description
public
string|null
$description
= null
$docblock_issues
public
array<int, CodeIssue>
$docblock_issues
= []
$global_types
public
array<string, Union>
$global_types
= []
$global_variables
public
array<string, bool>
$global_variables
= []
$has_undertyped_native_parameters
public
bool
$has_undertyped_native_parameters
= false
$has_visitor_issues
public
bool
$has_visitor_issues
= false
$has_yield
public
bool
$has_yield
= false
$if_false_assertions
public
array<int, Possibilities>
$if_false_assertions
= []
$if_true_assertions
public
array<int, Possibilities>
$if_true_assertions
= []
$internal
public
array<int, non-empty-string>
$internal
= []
$is_static
public
bool
$is_static
= false
$location
public
CodeLocation|null
$location
= null
$mutation_free
public
bool
$mutation_free
= false
$param_lookup
public
array<string, bool>
$param_lookup
= []
Tags
$params
public
array<int, FunctionLikeParameter>
$params
= []
Tags
$proxy_calls
public
array<int, array{fqn: string, params: int[], return: bool}>|null
$proxy_calls
= []
$public_api
public
bool
$public_api
= false
$pure
public
bool
$pure
= false
$removed_taints
public
array<string|int, string>
$removed_taints
= []
$required_param_count
public
int|null
$required_param_count
= null
$return_source_params
public
array<int, string>
$return_source_params
= []
$return_type
public
Union|null
$return_type
= null
$return_type_description
public
string|null
$return_type_description
= null
$return_type_location
public
CodeLocation|null
$return_type_location
= null
$returns_by_ref
public
bool
$returns_by_ref
= false
$signature_return_type
public
Union|null
$signature_return_type
= null
$signature_return_type_location
public
CodeLocation|null
$signature_return_type_location
= null
$specialize_call
Whether or not the function output is dependent solely on input - a function can be impure but still have this property (e.g. var_export). Useful for taint analysis.
public
bool
$specialize_call
= false
$stmt_location
public
CodeLocation|null
$stmt_location
= null
$suppressed_issues
public
array<int, string>
$suppressed_issues
= []
$taint_source_types
public
array<string|int, string>
$taint_source_types
= []
$template_types
An array holding the class template "as" types.
public
array<string|int, mixed>|null
$template_types
= null
It's the de-facto list of all templates on a given class.
The name of the template is the first key. The nested array is keyed by a unique function identifier. This allows operations with the same-named template defined across multiple classes and/or functions to not run into trouble.
$throw_locations
public
array<string, CodeLocation>
$throw_locations
= []
$throws
public
array<string, bool>
$throws
= []
$unused_docblock_parameters
public
array<string, CodeLocation>
$unused_docblock_parameters
= []
$variadic
public
bool
$variadic
= false
Methods
__toString()
public
__toString() : string
Return values
string__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>
Return values
array<int, AttributeStorage>getCompletionSignature()
public
getCompletionSignature() : string
Return values
stringgetHoverMarkdown()
Used in the Language Server
public
getHoverMarkdown() : string