Created
October 20, 2012 17:08
-
-
Save michael-romer/3924043 to your computer and use it in GitHub Desktop.
Listing 16.22
This file contains 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 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