88use Yiisoft \Db \Driver \DriverInterface ;
99
1010/**
11- * This interface provides a set of methods that must be implemented by {@see PDO} (PHP Data Objects) driver classes.
11+ * This interface provides a set of methods to implement by {@see PDO} (PHP Data Objects) driver classes.
1212 *
1313 * @link https://www.php.net/manual/en/book.pdo.php
1414 */
1515interface PDODriverInterface extends DriverInterface
1616{
1717 /**
18- * Set {@see PDO} attributes (name => value) that should be set when calling {@see open()} to establish a DB
18+ * Set {@see PDO} attributes (name => value) to set when calling {@see open()} to establish a DB
1919 * connection.
2020 *
2121 * Please refer to the [PHP manual](https://php.net/manual/en/pdo.setattribute.php) for details about available
2222 * attributes.
2323 *
24- * @param array $attributes The attributes (name => value) to be set on the DB connection.
24+ * @param array $attributes The attributes (name => value) to set on the DB connection.
2525 */
2626 public function attributes (array $ attributes ): void ;
2727
@@ -34,21 +34,22 @@ public function createConnection(): PDO;
3434
3535 /**
3636 * Set charset used for database connection. The property is only used for MySQL, PostgresSQL databases. Defaults to
37- * null, meaning using default charset as configured by the database.
37+ * ` null` , meaning using default charset as configured by the database.
3838 *
3939 * For Oracle Database, the charset must be specified in the {@see dsn}, for example, for UTF-8 by appending
4040 * `;charset=UTF-8` to the DSN string.
4141 *
42- * The same applies for if you're using GBK or BIG5 charset with MySQL, then it's highly recommended specifying
42+ * The same applies if you're using GBK or BIG5 charset with MySQL.
43+ * In this case it's highly recommended specifying
4344 * charset via {@see dsn} like `'mysql:dbname=database;host=127.0.0.1;charset=GBK;'`.
4445 *
45- * @param string|null $charset The charset to be used for database connection.
46+ * @param string|null $charset The charset to use for database connection.
4647 */
4748 public function charset (string |null $ charset ): void ;
4849
4950 /**
50- * @return string|null The charset of the pdo instance. Null is returned if the charset isn't set yet or not
51- * supported by the pdo driver
51+ * @return string|null The charset of the pdo instance. If the charset isn't set yet or not
52+ * supported by the PDO driver, it returns `null`.
5253 */
5354 public function getCharset (): string |null ;
5455
@@ -73,14 +74,14 @@ public function getPassword(): string;
7374 public function getUsername (): string ;
7475
7576 /**
76- * Set password for establishing DB connection. Defaults to `null` meaning no password to use .
77+ * Set password for establishing DB connection. Defaults to `null` meaning use no password.
7778 *
7879 * @param string $password The password for establishing DB connection.
7980 */
8081 public function password (string $ password ): void ;
8182
8283 /**
83- * Set username for establishing DB connection. Defaults to `null` meaning no username to use .
84+ * Set username for establishing DB connection. Defaults to `null` meaning use no username.
8485 *
8586 * @param string $username The username for establishing DB connection.
8687 */
0 commit comments