$value) { $this->$key = $value; } } /** @var string Type of the DBMS */ public $db; /** @var string Database host */ public $host; /** @var int Database port */ public $port; /** @var string Database name */ public $dbname; /** @var string Username to use for authentication */ public $username; /** @var string Password to use for authentication */ public $password; /** * Character set for the connection * * If you want to use the default charset as configured by the database, don't set this property. * * @var string */ public $charset; /** * PDO connect options * * Array of key-value pairs that should be set when calling {@link Connection::connect()} in order to establish a DB * connection. * * @var array */ public $options; }