xref: /PHP-8.0/ext/pdo/pdo_stmt.stub.php (revision 068c8db2)
1<?php
2
3/** @generate-function-entries */
4
5class PDOStatement implements IteratorAggregate
6{
7    /** @return bool */
8    public function bindColumn(string|int $column, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null) {}
9
10    /** @return bool */
11    public function bindParam(string|int $param, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null) {}
12
13    /** @return bool */
14    public function bindValue(string|int $param, mixed $value, int $type = PDO::PARAM_STR) {}
15
16    /** @return bool */
17    public function closeCursor() {}
18
19    /** @return int */
20    public function columnCount() {}
21
22    /** @return bool|null */
23    public function debugDumpParams() {}
24
25    /** @return string|null */
26    public function errorCode() {}
27
28    /** @return array */
29    public function errorInfo() {}
30
31    /** @return bool */
32    public function execute(?array $params = null) {}
33
34    /** @return mixed */
35    public function fetch(int $mode = PDO::FETCH_DEFAULT, int $cursorOrientation = PDO::FETCH_ORI_NEXT, int $cursorOffset = 0) {}
36
37    /** @return array */
38    public function fetchAll(int $mode = PDO::FETCH_DEFAULT, mixed ...$args) {}
39
40    /** @return mixed */
41    public function fetchColumn(int $column = 0) {}
42
43    /** @return object|false */
44    public function fetchObject(?string $class = "stdClass", array $constructorArgs = []) {}
45
46    /** @return mixed */
47    public function getAttribute(int $name) {}
48
49    /** @return array|false */
50    public function getColumnMeta(int $column) {}
51
52    /** @return bool */
53    public function nextRowset() {}
54
55    /** @return int */
56    public function rowCount() {}
57
58    /** @return bool */
59    public function setAttribute(int $attribute, mixed $value) {}
60
61    /** @return bool */
62    public function setFetchMode(int $mode, mixed ...$args) {}
63
64    public function getIterator(): Iterator {}
65}
66
67final class PDORow
68{
69}
70