MethodStorage
extends FunctionLikeStorage
in package
uses
UnserializeMemoryUsageSuppressionTrait
FinalYes
Table of Contents
Properties
- $abstract : bool
- $added_taints : array<string|int, string>
- $allow_named_arg_calls : bool
- $assertions : array<int, Possibilities>
- $attributes : array<int, AttributeStorage>
- $cased_name : string|null
- $conditionally_removed_taints : array<string|int, Union>
- $custom_metadata : array<string, _MetadataEntry>
- $defined_constants : array<string, Union>
- $defining_fqcln : string|null
- $deprecated : bool|null
- $description : string|null
- $docblock_issues : array<int, CodeIssue>
- $external_mutation_free : bool
- $final : bool
- $final_from_docblock : bool
- $global_types : array<string, Union>
- $global_variables : array<string, bool>
- $has_docblock_param_types : bool
- $has_docblock_return_type : bool
- $has_undertyped_native_parameters : bool
- $has_visitor_issues : bool
- $has_yield : bool
- $if_false_assertions : array<int, Possibilities>
- $if_this_is_type : Union|null
- $if_true_assertions : array<int, Possibilities>
- $immutable : bool
- $inheritdoc : bool
- $inherited_return_type : bool|null
- $internal : array<int, non-empty-string>
- $is_static : bool
- $location : CodeLocation|null
- $mutation_free : bool
- $mutation_free_inferred : bool
- $overridden_downstream : bool
- $overridden_somewhere : bool
- $param_lookup : array<string, bool>
- $params : array<int, FunctionLikeParameter>
- $probably_fluent : bool
- $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
- $self_out_type : Union|null
- $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
- $stubbed : bool
- $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.
- $this_property_mutations : array<string, bool>|null
- $throw_locations : array<string, CodeLocation>
- $throws : array<string, bool>
- $unused_docblock_parameters : array<string, CodeLocation>
- $variadic : bool
- $visibility : int
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
$abstract
public
bool
$abstract
= false
$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
= []
$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
= []
$defining_fqcln
public
string|null
$defining_fqcln
= null
$deprecated
public
bool|null
$deprecated
= null
$description
public
string|null
$description
= null
$docblock_issues
public
array<int, CodeIssue>
$docblock_issues
= []
$external_mutation_free
public
bool
$external_mutation_free
= false
$final
public
bool
$final
= false
$final_from_docblock
public
bool
$final_from_docblock
= false
$global_types
public
array<string, Union>
$global_types
= []
$global_variables
public
array<string, bool>
$global_variables
= []
$has_docblock_param_types
public
bool
$has_docblock_param_types
= false
$has_docblock_return_type
public
bool
$has_docblock_return_type
= false
$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_this_is_type
public
Union|null
$if_this_is_type
= null
$if_true_assertions
public
array<int, Possibilities>
$if_true_assertions
= []
$immutable
public
bool
$immutable
= false
$inheritdoc
public
bool
$inheritdoc
= false
$inherited_return_type
public
bool|null
$inherited_return_type
= false
$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
$mutation_free_inferred
public
bool
$mutation_free_inferred
= false
$overridden_downstream
public
bool
$overridden_downstream
= false
$overridden_somewhere
public
bool
$overridden_somewhere
= false
$param_lookup
public
array<string, bool>
$param_lookup
= []
Tags
$params
public
array<int, FunctionLikeParameter>
$params
= []
Tags
$probably_fluent
public
bool
$probably_fluent
= false
$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
$self_out_type
public
Union|null
$self_out_type
= null
$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
$stubbed
public
bool
$stubbed
= false
$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.
$this_property_mutations
public
array<string, bool>|null
$this_property_mutations
= null
$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
$visibility
public
int
$visibility
= 0
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