Skip to content

Commit 9d0de0e

Browse files
Update Connect.php
1 parent 9aab3ef commit 9d0de0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Connect.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class Connect
4040
/**
4141
* PDO connection instance
4242
*
43+
* @link https://www.php.net/manual/en/pdo.connections.php
44+
*
4345
* @return \PDO
4446
*/
4547
public static function start(): PDO
@@ -112,6 +114,11 @@ private static function newConnection(string $string): void
112114
self::$connection = new PDO($string, self::$username, self::$password);
113115
}
114116

117+
/**
118+
* Returns the PDO connection instance
119+
*
120+
* @return PDO
121+
*/
115122
public static function connection(): PDO
116123
{
117124
return self::$connection;

0 commit comments

Comments
 (0)