<?phpnamespace App\Entity;use App\Repository\CustomerInformationRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CustomerInformationRepository::class)]class CustomerInformation{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $company = null; #[ORM\Column(length: 255)] private ?string $name = null; #[ORM\Column(length: 255)] private ?string $email = null; #[ORM\OneToMany(mappedBy: 'customer_information', targetEntity: Support::class)] private Collection $supports; #[ORM\OneToMany(mappedBy: 'customer_information', targetEntity: Evolution::class)] private Collection $evolutions; public function __construct() { $this->supports = new ArrayCollection(); $this->evolutions = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getCompany(): ?string { return $this->company; } public function setCompany(string $company): self { $this->company = $company; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): self { $this->email = $email; return $this; } /** * @return Collection<int, Support> */ public function getSupports(): Collection { return $this->supports; } public function addSupport(Support $support): self { if (!$this->supports->contains($support)) { $this->supports->add($support); $support->setCustomerInformation($this); } return $this; } public function removeSupport(Support $support): self { if ($this->supports->removeElement($support)) { // set the owning side to null (unless already changed) if ($support->getCustomerInformation() === $this) { $support->setCustomerInformation(null); } } return $this; } public function getName(): ?string { return $this->name; } public function setName(?string $name): self { $this->name = $name; return $this; } /** * @return Collection<int, Evolution> */ public function getEvolutions(): Collection { return $this->evolutions; } public function addEvolution(Evolution $evolution): self { if (!$this->evolutions->contains($evolution)) { $this->evolutions->add($evolution); $evolution->setCustomerInformation($this); } return $this; } public function removeEvolution(Evolution $evolution): self { if ($this->evolutions->removeElement($evolution)) { // set the owning side to null (unless already changed) if ($evolution->getCustomerInformation() === $this) { $evolution->setCustomerInformation(null); } } return $this; }}