Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 5th, 2011  |  syntax: PHP  |  size: 1.41 KB  |  views: 408  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. namespace F3\FFGBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * F3\FFGBundle\Entity\User
  9.  *
  10.  * @ORM\Table()
  11.  * @ORM\Entity
  12.  */
  13. class User
  14. {
  15.     /**
  16.      * @var integer $id
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.  
  24.     /**
  25.      * @var string $username
  26.      *
  27.      * @ORM\Column(name="username", type="string", length=255)
  28.      */
  29.     private $username;
  30.  
  31.     /**
  32.      * @var string $password
  33.      *
  34.      * @ORM\Column(name="password", type="string", length=40)
  35.      */
  36.     private $password;
  37.  
  38.  
  39.     /**
  40.      * Get id
  41.      *
  42.      * @return integer
  43.      */
  44.     public function getId()
  45.     {
  46.         return $this->id;
  47.     }
  48.  
  49.     /**
  50.      * Set username
  51.      *
  52.      * @param string $username
  53.      */
  54.     public function setUsername($username)
  55.     {
  56.         $this->username = $username;
  57.     }
  58.  
  59.     /**
  60.      * Get username
  61.      *
  62.      * @return string
  63.      */
  64.     public function getUsername()
  65.     {
  66.         return $this->username;
  67.     }
  68.  
  69.     /**
  70.      * Set password
  71.      *
  72.      * @param string $password
  73.      */
  74.     public function setPassword($password)
  75.     {
  76.         $this->password = $password;
  77.     }
  78.  
  79.     /**
  80.      * Get password
  81.      *
  82.      * @return string
  83.      */
  84.     public function getPassword()
  85.     {
  86.         return $this->password;
  87.     }
  88. }
clone this paste RAW Paste Data