classBindings
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): voidRemember the latest binding made for this placeholder.
Parameters
$name | int|string | |
$binding | Closure(PDOStatement): bool | Native bindValue or bindParam operation. |
Test cases 2
public function fetch(Closure(PDOStatement): bool $fetch): voidRemember the caller's native fetch options.
Parameters
$fetch | Closure(PDOStatement): bool | Native setFetchMode operation. |
Test cases 1
public function apply(PDOStatement $statement): voidApply the remembered options to a newly prepared native statement.
Parameters
$statement | PDOStatement |
Test cases 3
Private surface 2§
Implementation details, listed for orientation only.
private array<int|string, Closure(PDOStatement): bool> $parameters = []private Closure(PDOStatement): bool|null $fetch = nullTest 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
PdoConnectionTestcallsPdoStatementTestcallsDriverSessionFactoryTestcallsParameterBinderTestcallsPreparedQueryTestcallsStatementExecutionTestcallsZtdPdoExceptionTestcallsZtdPdoStatementTestcallsZtdPdoTestcalls