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