Guest User

Untitled

a guest
May 18th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?php defined('SYSPATH') OR die('No direct access allowed.');
  2.  
  3. class Diigo_Client_Options implements Diigo_Client_Options_Interface
  4. {
  5. private static $instance = null;
  6. private $user;
  7. private $pass;
  8.  
  9. private function __construct()
  10. {
  11.  
  12. }
  13.  
  14. private function __clone()
  15. {
  16.  
  17. }
  18.  
  19. public static function instance()
  20. {
  21. if (self::$instance == null)
  22. {
  23. self::$instance = new self();
  24. }
  25.  
  26. return self::$instance;
  27. }
  28.  
  29. public function setUser($user)
  30. {
  31. $this->user = $user;
  32. return $this;
  33. }
  34.  
  35. public function setPass($pass)
  36. {
  37. $this->pass = $pass;
  38. return $this;
  39. }
  40.  
  41. public function getUser()
  42. {
  43. return $this->user;
  44. }
  45.  
  46. public function getPass(){
  47. return $this->pass;
  48. }
  49.  
  50. }
Add Comment
Please, Sign In to add comment