PHP Class Pheasant\Database\Dsn

Show file 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 property

public $database

$host public property

public $host

$params public property

public $params

$pass public property

public $pass

$port public property

public $port

$scheme public property

public $scheme

$user public property

public $user