DynamicFunctionStorage
in package
FinalYes
Table of Contents
Properties
- $allow_named_arg_calls : bool
- Determines if a function can be called with named arguments.
- $params : array<int, FunctionLikeParameter>
- Required param list for a function.
- $pure : bool
- Function purity.
- $return_type : Union|null
- A function return type. Maybe null.
- $templates : array<int, TTemplateParam>
- A function can have template args or return type.
- $variadic : bool
- Determines if a function can be called with a various number of arguments.
Properties
$allow_named_arg_calls
Determines if a function can be called with named arguments.
public
bool
$allow_named_arg_calls
= true
$params
Required param list for a function.
public
array<int, FunctionLikeParameter>
$params
= []
$pure
Function purity.
public
bool
$pure
= false
If function is pure then plugin hook should set it to true.
$return_type
A function return type. Maybe null.
public
Union|null
$return_type
= null
That means we can infer it in FunctionReturnTypeProviderInterface hook.
$templates
A function can have template args or return type.
public
array<int, TTemplateParam>
$templates
= []
Plugin hook must fill all used templates here.
$variadic
Determines if a function can be called with a various number of arguments.
public
bool
$variadic
= false