function Statement::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Statement.php \Drupal\Core\Database\Statement::__construct()

File

core/lib/Drupal/Core/Database/Statement.php, line 42

Class

Statement
Default implementation of StatementInterface.

Namespace

Drupal\Core\Database

Code

protected function __construct(Connection $dbh) {
    $this->dbh = $dbh;
    $this->setFetchMode(\PDO::FETCH_OBJ);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.