Пример #1
0
 /**
  * Returns singleton class instance
  * Always use this method unless you're working with multiple authenticated users at once
  *
  * @return Codebird The instance
  */
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self;
     }
     return self::$_instance;
 }