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

Every call in the source, by the name it is written with.

Going from a parameter to the arguments passed for it means finding the calls that reach the function. The calls are gathered once, by name, so that finding them is a lookup; deciding which of them really reach the function is left to whoever asks, because that can need their receivers.

Methods§

public function __construct(list<ParsedFile> $files = [])

Gathers the calls of every file.

Parameters

$fileslist<ParsedFile>
Calls 4
public function add(CallLike $call): void
public function instantiating(string $className): list<New_>

The instantiations written with that class name.

Parameters

$classNamestring

Returns

list<New_>
Test cases 1
Called from 1
Calls 1
public function nameOf(CallLike $call): ?string

Private surface 2§

Implementation details, listed for orientation only.

private array<string, list<CallLike>> $calls = []
private array<string, list<New_>> $instantiations = []

Test cases 55§

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

Dedicated tests 5
Other tests reaching this symbol 50

Relations§

Instantiated in 1
Method calls 4
Type declarations 2