function Result::__construct

Constructor.

Parameters

\Drupal\Core\Database\Statement\FetchAs $fetchMode: The fetch mode.

array{class: class-string, constructor_args: list<mixed>, column: int, cursor_orientation?: int, cursor_offset?: int} $fetchOptions: The fetch options.

\mysqli_result|false $mysqliResult: The MySQLi result object.

\mysqli $mysqliConnection: Client database connection object.

Overrides ResultBase::__construct

File

core/modules/mysqli/src/Driver/Database/mysqli/Result.php, line 31

Class

Result
Class for mysqli-provided results of a data query language (DQL) statement.

Namespace

Drupal\mysqli\Driver\Database\mysqli

Code

public function __construct(FetchAs $fetchMode, array $fetchOptions, protected readonly \mysqli_result|false $mysqliResult, protected readonly \mysqli $mysqliConnection) {
  parent::__construct($fetchMode, $fetchOptions);
}

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