/** * Creates connection instance * All parameters are necessary * @param $host * @param $port * @param $user * @param $password * @param $database */ public function __construct($host, $port, $user, $password, $database) { parent::__construct(); $this->host = $host; $this->port = $port; $this->user = $user; $this->password = $password; $this->database = $database; }