Class with property and empty method

  1. /**
  2. * A PHP Class that does things
  3. */
  4. class Class_That_Does_Stuff {
  5.  
  6. /**
  7. * A public class property
  8. *
  9. * (variables that float out here are called
  10. * properties & are accessible everywhere
  11. * inside the class)
  12. */
  13. public $words_to_say = 'do stuff';
  14.  
  15. /**
  16. * A public method
  17. *
  18. * (functions in classes are called methods..
  19. * how pretentious)
  20. */
  21. public function do_stuff() {
  22.  
  23. }
  24.  
  25. }