Skip to content

Instantly share code, notes, and snippets.

@michael-romer
Created October 20, 2012 17:08
Show Gist options
  • Save michael-romer/3924043 to your computer and use it in GitHub Desktop.
Save michael-romer/3924043 to your computer and use it in GitHub Desktop.
Listing 16.22
<?php
namespace Helloworld\Entity;
class User
{
protected $id;
protected $email;
protected $name;
protected $userAddress;
public function setUserAddress($userAddress)
{
$this->userAddress = $userAddress;
}
public function getUserAddress()
{
return $this->userAddress;
}
public function setEmail($email)
{
$this->email = $email;
}
public function getEmail()
{
return $this->email;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment