Pheasant\Database\Mysqli\Connection::__construct PHP Method

__construct() public method

Constructor
public __construct ( Dsn $dsn )
$dsn Pheasant\Database\Dsn
    public function __construct(Dsn $dsn)
    {
        $this->_dsn = $dsn;
        $this->_filter = new FilterChain();
        $this->_charset = isset($this->_dsn->params['charset']) ? $this->_dsn->params['charset'] : 'utf8';
        $this->_strict = isset($this->_dsn->params['strict']) ? $this->_dsn->params['strict'] : false;
        if (!empty($this->_dsn->database)) {
            $this->_selectedDatabase = $this->_dsn->database;
        }
        $this->_debug = getenv('PHEASANT_DEBUG');
    }