public function __construct($config) { $this->set($config); $dns = 'mssql:dbname=' . $this->dbname . ';host=' . $this->host . ';port=' . $this->port; $user = $this->user; $pass = $this->password; parent::__construct($dns, $user, $pass); }