Created
October 20, 2012 17:07
-
-
Save michael-romer/3924042 to your computer and use it in GitHub Desktop.
Listing 16.21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Helloworld\Entity; | |
class UserAddress | |
{ | |
private $street; | |
private $streetNumber; | |
private $zipcode; | |
private $city; | |
public function setStreet($street) | |
{ | |
$this->street = $street; | |
} | |
public function getStreet() | |
{ | |
return $this->street; | |
} | |
public function setCity($city) | |
{ | |
$this->city = $city; | |
} | |
public function getCity() | |
{ | |
return $this->city; | |
} | |
public function setStreetNumber($streetNumber) | |
{ | |
$this->streetNumber = $streetNumber; | |
} | |
public function getStreetNumber() | |
{ | |
return $this->streetNumber; | |
} | |
public function setZipcode($zipcode) | |
{ | |
$this->zipcode = $zipcode; | |
} | |
public function getZipcode() | |
{ | |
return $this->zipcode; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment