final class Bindings
Restricted visibility: declared "@visibility ZtdQuery\Adapter\Pdo". Code outside that scope must not name this declaration.

Replays native bindings and fetch options whenever rewriting replaces a statement. Callbacks retain references and arbitrary native driver arguments at the PDO boundary.

Methods§

public function parameter(int|string $name, Closure(PDOStatement): bool $binding): void

Remember the latest binding made for this placeholder.

Parameters

$nameint|string
$bindingClosure(PDOStatement): boolNative bindValue or bindParam operation.
Test cases 2
Called from 1
public function fetch(Closure(PDOStatement): bool $fetch): void

Remember the caller's native fetch options.

Parameters

$fetchClosure(PDOStatement): boolNative setFetchMode operation.
Test cases 1

Private surface 2§

Implementation details, listed for orientation only.

private array<int|string, Closure(PDOStatement): bool> $parameters = []
private Closure(PDOStatement): bool|null $fetch = null

Test cases 12§

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

Dedicated tests 3
Other tests reaching this symbol 9

Relations§

Instantiated in 1
Method calls 2
Type declarations 2