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

Collects the statements found while walking one file.

A prepared statement is filed under the call site that prepared it, so the execute() that comes later can find the records it binds values to even when the prepare produced several alternative statements.

Methods§

public function record(
    CallSite $site,
    string $siteKey,
    TextPattern $pattern,
    ?StatementKind $kind = null,
    bool $combined = false,
    list<string> $through = [],
    bool $truncated = false,
): QueryRecord

Records a statement issued at a call site.

Parameters

$siteCallSite
$siteKeystringWhat tells this call apart from every other, including one on the same line
$patternTextPattern
$kind?StatementKind
$combinedboolWhether the statement came from pairing parts that vary independently
$throughlist<string>The path taken to this reading, from the body the walk started in, outermost first
$truncatedboolWhether a bound cut the search short of every way the statement can be
Test cases 4
Called from 3
Calls 1
public function filePrepared(string $handle, list<QueryRecord> $records): void

Private surface 2§

Implementation details, listed for orientation only.

private list<QueryRecord> $records = []
private array<string, list<QueryRecord>> $prepared = []

Test cases 38§

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 33

Relations§

Instantiated in 1
Method calls 6
Type declarations 5