src/Entity/RecommendationRegistration.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RecommendationRegistrationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassRecommendationRegistrationRepository::class)]
  6. class RecommendationRegistration
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityRecommendation::class, inversedBy'registrations')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $recommendation;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $firstnameSponsor;
  17.     #[ORM\Column(type'string'length255)]
  18.     private $lastnameSponsor;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $companyNameGodchild;
  21.     #[ORM\Column(type'string'length255)]
  22.     private $firstnameGodchild;
  23.     #[ORM\Column(type'string'length255)]
  24.     private $lastnameGodchild;
  25.     #[ORM\Column(type'string'length20)]
  26.     private $phoneGodchild;
  27.     #[ORM\Column(type'string'length255)]
  28.     private $emailGodchild;
  29.     #[ORM\Column(type'boolean')]
  30.     private $optInRgpd false;
  31.     #[ORM\Column(type'datetime')]
  32.     private $createdAt;
  33.     public function __construct()
  34.     {
  35.         $this->createdAt = new \DateTime();
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getRecommendation(): ?Recommendation
  42.     {
  43.         return $this->recommendation;
  44.     }
  45.     public function setRecommendation(?Recommendation $recommendation): self
  46.     {
  47.         $this->recommendation $recommendation;
  48.         return $this;
  49.     }
  50.     public function getFirstnameSponsor(): ?string
  51.     {
  52.         return $this->firstnameSponsor;
  53.     }
  54.     public function setFirstnameSponsor(string $firstnameSponsor): self
  55.     {
  56.         $this->firstnameSponsor $firstnameSponsor;
  57.         return $this;
  58.     }
  59.     public function getLastnameSponsor(): ?string
  60.     {
  61.         return $this->lastnameSponsor;
  62.     }
  63.     public function setLastnameSponsor(string $lastnameSponsor): self
  64.     {
  65.         $this->lastnameSponsor $lastnameSponsor;
  66.         return $this;
  67.     }
  68.     public function getCompanyNameGodchild(): ?string
  69.     {
  70.         return $this->companyNameGodchild;
  71.     }
  72.     public function setCompanyNameGodchild(string $companyNameGodchild): self
  73.     {
  74.         $this->companyNameGodchild $companyNameGodchild;
  75.         return $this;
  76.     }
  77.     public function getFirstnameGodchild(): ?string
  78.     {
  79.         return $this->firstnameGodchild;
  80.     }
  81.     public function setFirstnameGodchild(string $firstnameGodchild): self
  82.     {
  83.         $this->firstnameGodchild $firstnameGodchild;
  84.         return $this;
  85.     }
  86.     public function getLastnameGodchild(): ?string
  87.     {
  88.         return $this->lastnameGodchild;
  89.     }
  90.     public function setLastnameGodchild(string $lastnameGodchild): self
  91.     {
  92.         $this->lastnameGodchild $lastnameGodchild;
  93.         return $this;
  94.     }
  95.     public function getPhoneGodchild(): ?string
  96.     {
  97.         return $this->phoneGodchild;
  98.     }
  99.     public function setPhoneGodchild(?string $phoneGodchild): self
  100.     {
  101.         $this->phoneGodchild $phoneGodchild;
  102.         return $this;
  103.     }
  104.     public function getEmailGodchild(): ?string
  105.     {
  106.         return $this->emailGodchild;
  107.     }
  108.     public function setEmailGodchild(string $emailGodchild): self
  109.     {
  110.         $this->emailGodchild $emailGodchild;
  111.         return $this;
  112.     }
  113.     public function isOptInRgpd(): ?bool
  114.     {
  115.         return $this->optInRgpd;
  116.     }
  117.     public function setOptInRgpd(bool $optInRgpd): self
  118.     {
  119.         $this->optInRgpd $optInRgpd;
  120.         return $this;
  121.     }
  122.     public function getCreatedAt(): ?\DateTimeInterface
  123.     {
  124.         return $this->createdAt;
  125.     }
  126.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  127.     {
  128.         $this->createdAt $createdAt;
  129.         return $this;
  130.     }
  131. }