yoesoff

User.php

Sep 28th, 2019
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.59 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\UserRepository")
  9.  */
  10. class User
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.  
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $username;
  23.  
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $email;
  28.  
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $password;
  33.  
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $address;
  38.  
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.  
  44.     public function getUsername(): ?string
  45.     {
  46.         return $this->username;
  47.     }
  48.  
  49.     public function setUsername(string $username): self
  50.     {
  51.         $this->username = $username;
  52.  
  53.         return $this;
  54.     }
  55.  
  56.     public function getEmail(): ?string
  57.     {
  58.         return $this->email;
  59.     }
  60.  
  61.     public function setEmail(string $email): self
  62.     {
  63.         $this->email = $email;
  64.  
  65.         return $this;
  66.     }
  67.  
  68.     public function getPassword(): ?string
  69.     {
  70.         return $this->password;
  71.     }
  72.  
  73.     public function setPassword(?string $password): self
  74.     {
  75.         $this->password = $password;
  76.  
  77.         return $this;
  78.     }
  79.  
  80.     public function getAddress(): ?string
  81.     {
  82.         return $this->address;
  83.     }
  84.  
  85.     public function setAddress(?string $address): self
  86.     {
  87.         $this->address = $address;
  88.  
  89.         return $this;
  90.     }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment