Skip to content

Commit a8ef62e

Browse files
Clean code AbstractDsn::class, AbstractDsnSocket::class, DsnInterface::class. (#544)
1 parent c20afb5 commit a8ef62e

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/Connection/AbstractDsn.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
use Stringable;
88

9+
use function implode;
10+
911
/**
1012
* The Dsn class is typically used to parse a DSN string, which is a string that contains all the necessary information
1113
* to connect to a database, such as the database driver, hostname, database name, port and options.

src/Connection/AbstractDsnSocket.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
use Stringable;
88

9+
use function implode;
10+
911
/**
1012
* The Dsn class is typically used to parse a DSN string, which is a string that contains all the necessary information
1113
* to connect to a database, such as the database driver, unix socket, database name, options.

src/Connection/DsnInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
namespace Yiisoft\Db\Connection;
66

7+
/**
8+
* DsnInterface represents a Data Source Name. It is used to configure a {@see ConnectionInterface} instance. The DSN
9+
* string format is described in {@see asString()}.
10+
*/
711
interface DsnInterface
812
{
913
/**

0 commit comments

Comments
 (0)