inner = $inner; } public function closeCursor(): bool { $this->inner->free(); return true; } public function fetch(int $fetchMode = PDO::FETCH_ASSOC) { return $this->inner->fetch($fetchMode); } public function fetchAll(int $fetchMode = PDO::FETCH_ASSOC): array { if ($fetchMode !== PDO::FETCH_ASSOC && $fetchMode !== PDO::FETCH_NUM && $fetchMode !== PDO::FETCH_COLUMN) { throw new \Exception('Fetch mode needs to be assoc, num or column.'); } return $this->inner->fetchAll($fetchMode); } public function fetchColumn($columnIndex = 0) { return $this->inner->fetchOne(); } public function fetchOne() { return $this->inner->fetchOne(); } public function rowCount(): int { return $this->inner->rowCount(); } }