src/Entity/SponsorshipRegistration.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SponsorshipRegistrationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSponsorshipRegistrationRepository::class)]
  6. class SponsorshipRegistration
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntitySponsorship::class, inversedBy'registrations')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $sponsorship;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $companyNameSponsor;
  17.     #[ORM\Column(type'string'length255)]
  18.     private $companyNameGodchild;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $firstname;
  21.     #[ORM\Column(type'string'length255)]
  22.     private $lastname;
  23.     #[ORM\Column(type'string'length20)]
  24.     private $phone;
  25.     #[ORM\Column(type'string'length255)]
  26.     private $email;
  27.     #[ORM\Column(type'boolean')]
  28.     private $optInRgpd false;
  29.     #[ORM\Column(type'datetime')]
  30.     private $createdAt;
  31.     public function __construct()
  32.     {
  33.         $this->createdAt = new \DateTime();
  34.     }
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getSponsorship(): ?Sponsorship
  40.     {
  41.         return $this->sponsorship;
  42.     }
  43.     public function setSponsorship(?Sponsorship $sponsorship): self
  44.     {
  45.         $this->sponsorship $sponsorship;
  46.         return $this;
  47.     }
  48.     public function getCompanyNameSponsor(): ?string
  49.     {
  50.         return $this->companyNameSponsor;
  51.     }
  52.     public function setCompanyNameSponsor(string $companyNameSponsor): self
  53.     {
  54.         $this->companyNameSponsor $companyNameSponsor;
  55.         return $this;
  56.     }
  57.     public function getCompanyNameGodchild(): ?string
  58.     {
  59.         return $this->companyNameGodchild;
  60.     }
  61.     public function setCompanyNameGodchild(string $companyNameGodchild): self
  62.     {
  63.         $this->companyNameGodchild $companyNameGodchild;
  64.         return $this;
  65.     }
  66.     public function getFirstname(): ?string
  67.     {
  68.         return $this->firstname;
  69.     }
  70.     public function setFirstname(string $firstname): self
  71.     {
  72.         $this->firstname $firstname;
  73.         return $this;
  74.     }
  75.     public function getLastname(): ?string
  76.     {
  77.         return $this->lastname;
  78.     }
  79.     public function setLastname(string $lastname): self
  80.     {
  81.         $this->lastname $lastname;
  82.         return $this;
  83.     }
  84.     public function getPhone(): ?string
  85.     {
  86.         return $this->phone;
  87.     }
  88.     public function setPhone(?string $phone): self
  89.     {
  90.         $this->phone $phone;
  91.         return $this;
  92.     }
  93.     public function getEmail(): ?string
  94.     {
  95.         return $this->email;
  96.     }
  97.     public function setEmail(string $email): self
  98.     {
  99.         $this->email $email;
  100.         return $this;
  101.     }
  102.     public function isOptInRgpd(): ?bool
  103.     {
  104.         return $this->optInRgpd;
  105.     }
  106.     public function setOptInRgpd(bool $optInRgpd): self
  107.     {
  108.         $this->optInRgpd $optInRgpd;
  109.         return $this;
  110.     }
  111.     public function getCreatedAt(): ?\DateTimeInterface
  112.     {
  113.         return $this->createdAt;
  114.     }
  115.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  116.     {
  117.         $this->createdAt $createdAt;
  118.         return $this;
  119.     }
  120. }