-
Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathpdo_stmt.stub.php
69 lines (47 loc) · 1.87 KB
/
pdo_stmt.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/** @generate-function-entries */
class PDOStatement implements IteratorAggregate
{
/** @return bool */
public function bindColumn(string|int $column, mixed &$var, int $type = 0, int $maxLength = 0, mixed $driverOptions = null) {}
/** @return bool */
public function bindParam(string|int $param, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null) {}
/** @return bool */
public function bindValue(string|int $param, mixed $value, int $type = PDO::PARAM_STR) {}
/** @return bool */
public function closeCursor() {}
/** @return int */
public function columnCount() {}
/** @return bool|null */
public function debugDumpParams() {}
/** @return string|null */
public function errorCode() {}
/** @return array */
public function errorInfo() {}
/** @return bool */
public function execute(?array $params = null) {}
/** @return mixed */
public function fetch(int $mode = PDO::FETCH_BOTH, int $cursorOrientation = PDO::FETCH_ORI_NEXT, int $cursorOffset = 0) {}
/** @return array */
public function fetchAll(int $mode = PDO::FETCH_BOTH, mixed ...$args) {}
/** @return mixed */
public function fetchColumn(int $column = 0) {}
/** @return object|false */
public function fetchObject(?string $class = "stdClass", ?array $ctorArgs = null) {}
/** @return mixed */
public function getAttribute(int $name) {}
/** @return array|false */
public function getColumnMeta(int $column) {}
/** @return bool */
public function nextRowset() {}
/** @return int */
public function rowCount() {}
/** @return bool */
public function setAttribute(int $attribute, mixed $value) {}
/** @return bool */
public function setFetchMode(int $mode, mixed ...$args) {}
public function getIterator(): Iterator {}
}
final class PDORow
{
}