<?phpnamespace App\Entity;use App\Entity\Traits\TimeStampable;use App\Repository\CountryRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CountryRepository::class)]#[ORM\HasLifecycleCallbacks]class Country{ use TimeStampable; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 65)] private ?string $name = null; #[ORM\Column(length: 3, nullable: true)] private ?string $isoCode = null; #[ORM\Column(length: 6, nullable: true)] private ?string $callingCode = null; #[ORM\ManyToOne] private ?Currency $currency = null; #[ORM\ManyToOne] private ?User $createdBy = null; public function __construct() { $this->createdAt = new \DateTimeImmutable(); $this->updatedAt = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getIsoCode(): ?string { return $this->isoCode; } public function setIsoCode(?string $isoCode): self { $this->isoCode = $isoCode; return $this; } public function getCallingCode(): ?string { return $this->callingCode; } public function setCallingCode(?string $callingCode): self { $this->callingCode = $callingCode; return $this; } public function getCurrency(): ?Currency { return $this->currency; } public function setCurrency(?Currency $currency): self { $this->currency = $currency; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; }}