<?phpnamespace App\Entity;use App\Repository\ContactRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: ContactRepository::class)]class Contact{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] #[Groups(['getContact'])] private ?int $id = null; #[ORM\Column(length: 40)] #[Groups(['getContact'])] private ?string $firstName = null; #[ORM\Column(length: 40)] #[Groups(['getContact'])] private ?string $lastName = null; #[ORM\Column(length: 12,nullable: true)] #[Groups(['getContact'])] private ?string $phone = null; #[ORM\Column(length: 100, nullable: true)] #[Groups(['getContact'])] private ?string $email = null; #[ORM\ManyToOne(inversedBy: 'contacts')] #[ORM\JoinColumn(nullable: false)] #[Groups(['getContact'])] private ?Client $client = null; public function getId(): ?int { return $this->id; } 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 getClient(): ?Client { return $this->client; } public function setClient(?Client $client): self { $this->client = $client; return $this; }}