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

Where in the analyzed source a statement is issued.

Constants§

public const UNMATCHED = 'unmatched'

The sink reported for a database call whose receiver could not be identified.

Properties§

public string $file
public int $line
public string $function
public string $sink

Methods§

public function __construct(
    public string $file,
    public int $line,
    public string $function,
    public string $sink,
)

Parameters

$filestringThe path the statement was found in, relative to the analysis root
$lineintThe line the call is written on
$functionstringThe enclosing function, as `Class::method`, `function` or `{main}`
$sinkstringThe identifier of the database call that was matched
public function display(): string

The site written the way an editor jumps to it.

Returns

string
Test cases 1

Test cases 252§

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 250

Relations§

Instantiated in 2
Constant reads 2
Type declarations 4