final class FunctionShape
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

One free function the analyzer can look up and, when it is worth it, step into.

Properties§

public string $name
public list<ParameterShape> $parameters
public TypeShape $returnType
public FunctionLike|null $node = null
public string $file = ''

Methods§

public function __construct(
    public string $name,
    public list<ParameterShape> $parameters,
    public TypeShape $returnType,
    public FunctionLike|null $node = null,
    public string $file = '',
)

Parameters

$namestringThe function name, fully qualified without a leading backslash
$parameterslist<ParameterShape>The declared parameters, in order
$returnTypeTypeShapeThe declared return type
$nodeFunctionLike|nullThe declaration, when its body is available to step into
$filestringThe file the declaration was read from

Test cases 27§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 26

Relations§

Instantiated in 1
Type declarations 4