Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. class Dog {
  2.  
  3. public $var;
  4. private static $instance;
  5.  
  6. private function __construct() {}
  7. private function __clone() {}
  8.  
  9. function i18n() {
  10. // Load text domain. Whilst relevant to the plugin, it isn't directly relevant to the class.
  11. }
  12.  
  13. function enqueue_scripts() {
  14. // Enqueue styles and scripts. Whilst relevant to the plugin, it isn't directly relevant to the class.
  15. }
  16.  
  17. function sleep() {
  18. // The things in this method are directly related to the class.
  19. }
  20.  
  21. function eat() {
  22. // The things in this method are directly related to the class.
  23. }
  24.  
  25. function play() {
  26. // The things in this method are directly related to the class.
  27. }
  28.  
  29. static function get_instance() {
  30. if ( self::get_instance() == NULL )
  31. self::$instance = new Dog;
  32.  
  33. return self::$instance;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement