88use Yiisoft \Db \Driver \DriverInterface ;
99
1010/**
11- * The PDODriverInterface provides a set of methods that must be implemented by PDO (PHP Data Objects) driver classes.
12- * These methods include basic CRUD (create, read, update, delete) operations for interacting with a database, such as
13- * connecting to a database, preparing and executing SQL statements, and retrieving data from the result set.
11+ * This interface provides a set of methods that must be implemented by {@see PDO} (PHP Data Objects) driver classes.
12+ *
13+ * {@link https://www.php.net/manual/en/book.pdo.php}
1414 */
1515interface PDODriverInterface extends DriverInterface
1616{
1717 /**
18- * Set PDO attributes (name => value) that should be set when calling {@see open()} to establish a DB connection.
18+ * Set {@see PDO} attributes (name => value) that should be set when calling {@see open()} to establish a DB
19+ * connection.
20+ *
1921 * Please refer to the [PHP manual](http://php.net/manual/en/pdo.setattribute.php) for details about available
2022 * attributes.
2123 *
@@ -24,17 +26,17 @@ interface PDODriverInterface extends DriverInterface
2426 public function attributes (array $ attributes ): void ;
2527
2628 /**
27- * Creates a PDO instance representing a connection to a database.
29+ * Creates a {@see PDO} instance representing a connection to a database.
2830 *
29- * @return PDO The created PDO instance.
31+ * @return PDO The created {@see PDO} instance.
3032 */
3133 public function createConnection (): PDO ;
3234
3335 /**
3436 * Set charset used for database connection. The property is only used for MySQL, PostgresSQL databases. Defaults to
3537 * null, meaning using default charset as configured by the database.
3638 *
37- * For Oracle Database, the charset must be specified in the {@see dsn}, for example for UTF-8 by appending
39+ * For Oracle Database, the charset must be specified in the {@see dsn}, for example, for UTF-8 by appending
3840 * `;charset=UTF-8` to the DSN string.
3941 *
4042 * The same applies for if you're using GBK or BIG5 charset with MySQL, then it's highly recommended specifying
@@ -45,7 +47,7 @@ public function createConnection(): PDO;
4547 public function charset (string |null $ charset ): void ;
4648
4749 /**
48- * @return string|null The charset of the pdo instance. Null is returned if the charset is not set yet or not
50+ * @return string|null The charset of the pdo instance. Null is returned if the charset isn't set yet or not
4951 * supported by the pdo driver
5052 */
5153 public function getCharset (): string |null ;
@@ -56,7 +58,7 @@ public function getCharset(): string|null;
5658 public function getDsn (): string ;
5759
5860 /**
59- * @return string The driver name DB connection.
61+ * @return string The driver name for DB connection.
6062 */
6163 public function getDriverName (): string ;
6264
0 commit comments