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

PDO statement implementing StatementInterface for ZTD layer.

This class wraps a PDOStatement and provides the minimal interface required by the ZTD session for executing statements and fetching results.

Methods§

public function __construct(PDOStatement $statement)

Binds the instance to what it will work from.

Parameters

$statementPDOStatement
public function execute(?array $params = null): bool

{@inheritDoc}

Parameters

$params?array

Returns

bool

Throws

DatabaseException On database error when PDO is in exception mode.
Test cases 2
Calls 3
public function fetchAll(): array
public function resultColumns(ResultColumnTypeResolver $typeResolver): array

{@inheritDoc}

Parameters

Returns

array
Test cases 1
Called from 1
Calls 5
public function rowCount(): int

{@inheritDoc}

Returns

int
Test cases 1
Calls 1
  • method-call PDOStatement::rowCount() line 105

Private surface 1§

Implementation details, listed for orientation only.

private PDOStatement $statement

Test cases 16§

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

Dedicated tests 8
Other tests reaching this symbol 8

Relations§

Instantiated in 3
Method calls 2