daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Jul 18th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top