Skip to content

Instantly share code, notes, and snippets.

@michael-romer
Created October 20, 2012 17:07
Show Gist options
  • Save michael-romer/3924042 to your computer and use it in GitHub Desktop.
Save michael-romer/3924042 to your computer and use it in GitHub Desktop.
Listing 16.21
<?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