Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class chat{
- private $_db;
- private static $_self = null;
- private function __construct($db){
- $this->_db = $db;
- }
- public static function _self($db){
- if(self::$_self == null){
- self::$_self = new self($db);
- }
- return self::$_self;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement