1 | <?php |
||
12 | class QueryStatement implements DatabaseStatement { |
||
13 | /** @var PDOStatement */ |
||
14 | private $statement; |
||
15 | /** @var QueryLoggers */ |
||
16 | private $queryLoggers; |
||
17 | /** @var string */ |
||
18 | private $query; |
||
19 | /** @var MySQLExceptionInterpreter */ |
||
20 | private $exceptionInterpreter; |
||
21 | |||
22 | /** |
||
23 | * @param PDOStatement $stmt |
||
24 | * @param string $query |
||
25 | * @param MySQLExceptionInterpreter $exceptionInterpreter |
||
26 | * @param QueryLoggers $queryLoggers |
||
27 | */ |
||
28 | public function __construct(PDOStatement $stmt, $query, MySQLExceptionInterpreter $exceptionInterpreter, QueryLoggers $queryLoggers) { |
||
34 | |||
35 | /** |
||
36 | * @return PDOStatement |
||
37 | */ |
||
38 | public function getStatement() { |
||
41 | |||
42 | /** |
||
43 | * @param int $mode |
||
44 | * @param mixed $arg0 |
||
45 | * @param array $arg1 |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setFetchMode($mode, $arg0 = null, array $arg1 = null) { |
||
62 | |||
63 | /** |
||
64 | * @param array $params |
||
65 | * @throws SqlException |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function execute(array $params = []) { |
||
79 | |||
80 | /** |
||
81 | * @param int $fetchStyle |
||
82 | * @param mixed $fetchArgument |
||
83 | * @param array $ctorArgs |
||
84 | * @return array |
||
85 | */ |
||
86 | public function fetchAll($fetchStyle = null, $fetchArgument = null, array $ctorArgs = []) { |
||
94 | |||
95 | /** |
||
96 | * @param int $fetchStyle |
||
97 | * @param int $cursorOrientation |
||
98 | * @param int $cursorOffset |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function fetch($fetchStyle = null, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) { |
||
106 | |||
107 | /** |
||
108 | * @param int $columnNo |
||
109 | * @return mixed |
||
110 | */ |
||
111 | public function fetchColumn($columnNo = 0) { |
||
116 | |||
117 | /** |
||
118 | * @return bool |
||
119 | */ |
||
120 | public function closeCursor() { |
||
125 | |||
126 | /** |
||
127 | * @return int |
||
128 | */ |
||
129 | public function columnCount() { |
||
134 | |||
135 | /** |
||
136 | * @param int $columnNo |
||
137 | * @return array |
||
138 | */ |
||
139 | public function getColumnMeta($columnNo) { |
||
144 | |||
145 | /** |
||
146 | * @param callable $fn |
||
147 | * @return mixed |
||
148 | */ |
||
149 | private function exceptionHandler($fn) { |
||
156 | } |
||
157 |