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

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

Properties§

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

Methods§

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

Parameters

$classNamestringThe declaring class, fully qualified without a leading backslash
$namestringThe method name as written
$parameterslist<ParameterShape>The declared parameters, in order
$returnTypeTypeShapeThe declared return type
$staticboolWhether the method is declared static
$nodeFunctionLike|nullThe declaration, when its body is available to step into
$filestringThe file the declaration was read from
public function qualifiedName(): string

The method named the way findings refer to it.

Returns

string
Test cases 1

Test cases 17§

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

Dedicated tests 2
Other tests reaching this symbol 15

Relations§

Instantiated in 1
Type checks 3
Type declarations 5