Created
July 16, 2016 12:18
-
-
Save pboethig/4de74e74e8fc311ce191733eef3ce4eb to your computer and use it in GitHub Desktop.
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 Check\BlogBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* User | |
* | |
* @ORM\Table(name="user", uniqueConstraints={@ORM\UniqueConstraint(name="UNIQ_8D93D649F85E0677", columns={"username"})}) | |
* @ORM\Entity | |
*/ | |
class User | |
{ | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="username", type="string", length=255, nullable=false) | |
*/ | |
private $username; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="email", type="string", length=255, nullable=false) | |
*/ | |
private $email; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="password", type="string", length=255, nullable=false) | |
*/ | |
private $password; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="firstname", type="string", length=255, nullable=false) | |
*/ | |
private $firstname; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="lastname", type="string", length=255, nullable=false) | |
*/ | |
private $lastname; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="created", type="string", length=255, nullable=false) | |
*/ | |
private $created; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="updated", type="string", length=255, nullable=false) | |
*/ | |
private $updated; | |
/** | |
* @var integer | |
* | |
* @ORM\Column(name="id", type="integer") | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="IDENTITY") | |
*/ | |
private $id; | |
/** | |
* Set username | |
* | |
* @param string $username | |
* | |
* @return User | |
*/ | |
public function setUsername($username) | |
{ | |
$this->username = $username; | |
return $this; | |
} | |
/** | |
* Get username | |
* | |
* @return string | |
*/ | |
public function getUsername() | |
{ | |
return $this->username; | |
} | |
/** | |
* Set email | |
* | |
* @param string $email | |
* | |
* @return User | |
*/ | |
public function setEmail($email) | |
{ | |
$this->email = $email; | |
return $this; | |
} | |
/** | |
* Get email | |
* | |
* @return string | |
*/ | |
public function getEmail() | |
{ | |
return $this->email; | |
} | |
/** | |
* Set password | |
* | |
* @param string $password | |
* | |
* @return User | |
*/ | |
public function setPassword($password) | |
{ | |
$this->password = $password; | |
return $this; | |
} | |
/** | |
* Get password | |
* | |
* @return string | |
*/ | |
public function getPassword() | |
{ | |
return $this->password; | |
} | |
/** | |
* Set firstname | |
* | |
* @param string $firstname | |
* | |
* @return User | |
*/ | |
public function setFirstname($firstname) | |
{ | |
$this->firstname = $firstname; | |
return $this; | |
} | |
/** | |
* Get firstname | |
* | |
* @return string | |
*/ | |
public function getFirstname() | |
{ | |
return $this->firstname; | |
} | |
/** | |
* Set lastname | |
* | |
* @param string $lastname | |
* | |
* @return User | |
*/ | |
public function setLastname($lastname) | |
{ | |
$this->lastname = $lastname; | |
return $this; | |
} | |
/** | |
* Get lastname | |
* | |
* @return string | |
*/ | |
public function getLastname() | |
{ | |
return $this->lastname; | |
} | |
/** | |
* Set created | |
* | |
* @param string $created | |
* | |
* @return User | |
*/ | |
public function setCreated($created) | |
{ | |
$this->created = $created; | |
return $this; | |
} | |
/** | |
* Get created | |
* | |
* @return string | |
*/ | |
public function getCreated() | |
{ | |
return $this->created; | |
} | |
/** | |
* Set updated | |
* | |
* @param string $updated | |
* | |
* @return User | |
*/ | |
public function setUpdated($updated) | |
{ | |
$this->updated = $updated; | |
return $this; | |
} | |
/** | |
* Get updated | |
* | |
* @return string | |
*/ | |
public function getUpdated() | |
{ | |
return $this->updated; | |
} | |
/** | |
* Get id | |
* | |
* @return integer | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment