<?phpnamespace App\Entity;use App\Repository\SponsorshipRegistrationRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SponsorshipRegistrationRepository::class)]class SponsorshipRegistration{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\ManyToOne(targetEntity: Sponsorship::class, inversedBy: 'registrations')] #[ORM\JoinColumn(nullable: false)] private $sponsorship; #[ORM\Column(type: 'string', length: 255)] private $companyNameSponsor; #[ORM\Column(type: 'string', length: 255)] private $companyNameGodchild; #[ORM\Column(type: 'string', length: 255)] private $firstname; #[ORM\Column(type: 'string', length: 255)] private $lastname; #[ORM\Column(type: 'string', length: 20)] private $phone; #[ORM\Column(type: 'string', length: 255)] private $email; #[ORM\Column(type: 'boolean')] private $optInRgpd = false; #[ORM\Column(type: 'datetime')] private $createdAt; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getSponsorship(): ?Sponsorship { return $this->sponsorship; } public function setSponsorship(?Sponsorship $sponsorship): self { $this->sponsorship = $sponsorship; return $this; } public function getCompanyNameSponsor(): ?string { return $this->companyNameSponsor; } public function setCompanyNameSponsor(string $companyNameSponsor): self { $this->companyNameSponsor = $companyNameSponsor; return $this; } public function getCompanyNameGodchild(): ?string { return $this->companyNameGodchild; } public function setCompanyNameGodchild(string $companyNameGodchild): self { $this->companyNameGodchild = $companyNameGodchild; return $this; } public function getFirstname(): ?string { return $this->firstname; } public function setFirstname(string $firstname): self { $this->firstname = $firstname; return $this; } public function getLastname(): ?string { return $this->lastname; } public function setLastname(string $lastname): self { $this->lastname = $lastname; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(?string $phone): self { $this->phone = $phone; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function isOptInRgpd(): ?bool { return $this->optInRgpd; } public function setOptInRgpd(bool $optInRgpd): self { $this->optInRgpd = $optInRgpd; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }}