PHP Class Pheasant\Database\Dsn

显示文件 Open project: lox/pheasant Class Usage Examples

Public Properties

Property Type Description
$database
$host
$params
$pass
$port
$scheme
$user

Public Methods

Method Description
__construct ( $dsn ) Constructor
__toString ( ) : string Serialize the DSN into a string
copy ( $alter = [] ) Returns a clone with certain parameters changed
fromString ( $dsn ) : Dsn Static constructor

Method Details

__construct() public method

Constructor
public __construct ( $dsn )

__toString() public method

Serialize the DSN into a string
public __toString ( ) : string
return string

copy() public method

Returns a clone with certain parameters changed
public copy ( $alter = [] )

fromString() public static method

Static constructor
public static fromString ( $dsn ) : Dsn
return Dsn

Property Details

$database public_oe property

public $database

$host public_oe property

public $host

$params public_oe property

public $params

$pass public_oe property

public $pass

$port public_oe property

public $port

$scheme public_oe property

public $scheme

$user public_oe property

public $user