Guest User

Untitled

a guest
Jul 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2.  
  3. class Example_Customer {
  4.  
  5. // Some properties
  6. protected $name = "Joe Schmoe";
  7. protected $street = "1st St NW";
  8. protected $city = "Washington";
  9. protected $zipcode = "20008";
  10. protected $spamLikeThereIsNoTomorrow = true;
  11.  
  12. // Getter methods for the properties
  13. public function getName() { return $this->name; }
  14. public function getStreet() { return $this->street; }
  15. public function getCity() { return $this->city; }
  16. public function getZipcode() { return $this->zipcode; }
  17. public function getSpamLikeThereIsNoTomorrow() {
  18. return $this->spamLikeThereIsNoTomorrow;
  19. }
  20.  
  21. // Setters are left as an exercise :)
  22.  
  23. }
Add Comment
Please, Sign In to add comment