src/Entity/TreatmentsForm.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TreatmentsFormRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TreatmentsFormRepository::class)
  7.  */
  8. class TreatmentsForm
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="treatmentsForms")
  18.      */
  19.     private $user;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $name;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $surname;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $gender;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $email;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      */
  39.     private $phone;
  40.     /**
  41.      * @ORM\Column(type="array")
  42.      */
  43.     private $treatments;
  44.     /**
  45.      * @ORM\Column(type="date")
  46.      */
  47.     private $createdAt;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getUser(): ?User
  53.     {
  54.         return $this->user;
  55.     }
  56.     public function setUser(?User $user): self
  57.     {
  58.         $this->user $user;
  59.         return $this;
  60.     }
  61.     public function getName(): ?string
  62.     {
  63.         return $this->name;
  64.     }
  65.     public function setName(string $name): self
  66.     {
  67.         $this->name $name;
  68.         return $this;
  69.     }
  70.     public function getSurname(): ?string
  71.     {
  72.         return $this->surname;
  73.     }
  74.     public function setSurname(string $surname): self
  75.     {
  76.         $this->surname $surname;
  77.         return $this;
  78.     }
  79.     public function getGender(): ?string
  80.     {
  81.         return $this->gender;
  82.     }
  83.     public function setGender(string $gender): self
  84.     {
  85.         $this->gender $gender;
  86.         return $this;
  87.     }
  88.     public function getEmail(): ?string
  89.     {
  90.         return $this->email;
  91.     }
  92.     public function setEmail(string $email): self
  93.     {
  94.         $this->email $email;
  95.         return $this;
  96.     }
  97.     public function getPhone(): ?string
  98.     {
  99.         return $this->phone;
  100.     }
  101.     public function setPhone(string $phone): self
  102.     {
  103.         $this->phone $phone;
  104.         return $this;
  105.     }
  106.     public function getTreatments(): ?array
  107.     {
  108.         return $this->treatments;
  109.     }
  110.     public function setTreatments(array $treatments): self
  111.     {
  112.         $this->treatments $treatments;
  113.         return $this;
  114.     }
  115.     public function getCreatedAt(): ?\DateTimeInterface
  116.     {
  117.         return $this->createdAt;
  118.     }
  119.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  120.     {
  121.         $this->createdAt $createdAt;
  122.         return $this;
  123.     }
  124. }