PHP Interface LMongo\ConnectionResolverInterface

显示文件 Open project: navruzm/lmongo Interface Usage Examples

Public Methods

Method Description
connection ( string $name = null ) : LMongo\Connection Get a database connection instance.
getDefaultConnection ( ) : string Get the default connection name.

Method Details

connection() public method

Get a database connection instance.
public connection ( string $name = null ) : LMongo\Connection
$name string
return LMongo\Connection

getDefaultConnection() public method

Get the default connection name.
public getDefaultConnection ( ) : string
return string