forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdo_dbh.stub.php
51 lines (35 loc) · 1.52 KB
/
pdo_dbh.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/** @generate-class-entries */
/** @not-serializable */
class PDO
{
public function __construct(string $dsn, ?string $username = null, ?string $password = null, ?array $options = null) {}
/** @tentative-return-type */
public function beginTransaction(): bool {}
/** @tentative-return-type */
public function commit(): bool {}
/** @tentative-return-type */
public function errorCode(): ?string {}
/** @tentative-return-type */
public function errorInfo(): array {}
/** @tentative-return-type */
public function exec(string $statement): int|false {}
/** @tentative-return-type */
public function getAttribute(int $attribute): mixed {}
/** @tentative-return-type */
public static function getAvailableDrivers(): array {}
/** @tentative-return-type */
public function inTransaction(): bool {}
/** @tentative-return-type */
public function lastInsertId(?string $name = null): string|false {}
/** @tentative-return-type */
public function prepare(string $query, array $options = []): PDOStatement|false {}
/** @tentative-return-type */
public function query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false {}
/** @tentative-return-type */
public function quote(string $string, int $type = PDO::PARAM_STR): string|false {}
/** @tentative-return-type */
public function rollBack(): bool {}
/** @tentative-return-type */
public function setAttribute(int $attribute, mixed $value): bool {}
}