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

Attaches the values a call binds to the statements they are bound to.

Drivers offer several ways to say the same thing: one array of values, a variadic list, or one name and one value at a time. The binder reads all of them into the same record, so a statement carries what it is given however it was given.

Methods§

public function __construct(StatementRecorder $recorder)

Wires the binder to the recorder holding the open statements.

Parameters

public function bindValues(
    list<QueryRecord> $records,
    SinkSpec $sink,
    list<Domain> $arguments,
): void
public function bindingKey(string|int|float|bool|null $written): string|int|null

The key a single bind writes its value under.

Parameters

$writtenstring|int|float|bool|null

Returns

string|int|null
Test cases 1
Called from 1
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private StatementRecorder $recorder

Test cases 30§

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

Dedicated tests 13
Other tests reaching this symbol 17

Relations§

Instantiated in 1
Method calls 3
Type declarations 2