/** * @return mySQL|null */ public static function getInstance() { if (self::$instance == null) { self::$instance = new mySQL(); } return self::$instance; }
public function configure($dbServer, $userName, $password, $db) { $this->db = $db; $this->dbServer = $dbServer; $this->dbPassword = $password; $this->dbUsername = $userName; self::$instance = $this; }