Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Config
- {
- private static $configInstantie = null;
- private $server;
- private $database;
- private $username;
- private $password;
- private function __construct()
- {
- $this->server = "localhost";
- $this->database = "lesdb";
- $this->username = "root";
- $this->password = "";
- }
- public static function getConfigInstantie()
- {
- if(is_null(self::$configInstantie))
- {
- self::$configInstantie = new Config();
- }
- return self::$configInstantie;
- }
- public function getServer()
- {
- return $this->server;
- }
- public function getDatabase()
- {
- return $this->database;
- }
- public function getUsername()
- {
- return $this->username;
- }
- public function getPassword()
- {
- return $this->password;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement