1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/ext/pdo/pdo_dbh.stub.php
T
Nikita Popov 7d3e530f4e Use zpp for PDO fetch mode
Also changing the function signatures to accept variadic args
for the fetch params. If we're already breaking Doctrine anyway,
we may as well do it properly.
2020-07-20 16:05:33 +02:00

54 lines
1.4 KiB
PHP

<?php
/** @generate-function-entries */
class PDO
{
public function __construct(string $dsn, ?string $username = null, ?string $passwd = 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 $statement, array $driver_options = []) {}
/** @return PDOStatement|false */
public function query(string $statement, int $fetch_mode = UNKNOWN, ...$fetch_mode_args) {}
/** @return string|false */
public function quote(string $string, int $parameter_type = PDO::PARAM_STR) {}
/** @return bool */
public function rollBack() {}
/**
* @param mixed $value
* @return bool
*/
public function setAttribute(int $attribute, $value) {}
}