Created
October 20, 2012 11:51
-
-
Save michael-romer/3923101 to your computer and use it in GitHub Desktop.
Listing 16.18
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 User | |
{ | |
protected $id; | |
protected $email; | |
protected $name; | |
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