<?php
namespace App\Entity;
use App\Repository\TimeZoneRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TimeZoneRepository::class)]
class TimeZone
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'timeZones')]
private ?Country $country = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $zone = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $type = null;
public function getId(): ?int
{
return $this->id;
}
public function getCountry(): ?Country
{
return $this->country;
}
public function setCountry(?Country $country): self
{
$this->country = $country;
return $this;
}
public function getZone(): ?string
{
return $this->zone;
}
public function setZone(?string $zone): self
{
$this->zone = $zone;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
}