public function __construct($host = null, $port = null, $username = null, $password = null, $database = null)
{
$this->host = $host ?: self::DEFAULT_HOST;
$this->port = $port ?: self::DEFAULT_PORT;
$this->username = $username;
$this->password = $password;
$this->database = $database;
}