php-src/ext/pdo/pdo_dbh.stub.php
Nikita Popov 0f3698173e Update PDO parameter names
Followup to previous changes:
 * Use camel case, as PDO uses a camel case OO API.
 * Use &$var instead of &$bind_var or &$param.
 * Use $column instead of $index. We have cases (both inside PDO
   and in other DB exts) where columns can also be represented as
   strings, so $column is the safer generic name.

Closes GH-6272.
2020-10-05 15:51:36 +02:00

53 lines
1.3 KiB
PHP

<?php
/** @generate-function-entries */
class PDO
{
public function __construct(string $dsn, ?string $username = null, ?string $password = null, ?array $options = null) {}
/** @return bool */
public function beginTransaction() {}
/** @return bool */
public function commit() {}
/** @return string|null */
public function errorCode() {}
/** @return array */
public function errorInfo() {}
/** @return int|false */
public function exec(string $statement) {}
/** @return bool|int|string|array|null */
public function getAttribute(int $attribute) {}
/** @return array */
public static function getAvailableDrivers() {}
/** @return bool */
public function inTransaction() {}
/** @return string|false */
public function lastInsertId(?string $name = null) {}
/** @return PDOStatement|false */
public function prepare(string $query, array $options = []) {}
/** @return PDOStatement|false */
public function query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) {}
/** @return string|false */
public function quote(string $string, int $type = PDO::PARAM_STR) {}
/** @return bool */
public function rollBack() {}
/**
* @param array|int $value
* @return bool
*/
public function setAttribute(int $attribute, $value) {}
}