<?php
namespace App\Entity;
use Doctrine\ORM\Mapping\Index;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\PostofficeRepository;
use ApiPlatform\Core\Annotation\ApiResource;
#[ORM\Entity(repositoryClass: PostofficeRepository::class)]
#[Index(name: "postoffice_delivery", columns: ["delivery"])]
class PostOffice implements EntityInterface
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $delivery = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(length: 255)]
private ?string $address = null;
#[ORM\Column(length: 255)]
private ?string $lat = null;
#[ORM\Column(length: 255)]
private ?string $lon = null;
#[ORM\Column(length: 255)]
private ?string $worktime = null;
#[ORM\Column(length: 255)]
private ?string $postcode = null;
#[ORM\Column(length: 255)]
private ?string $code = null;
#[ORM\Column(length: 255)]
private ?string $phone = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
#[ORM\Column(length: 1000)]
private ?string $comment = null;
#[ORM\Column]
private ?int $updated = null;
public function getId(): ?int
{
return $this->id;
}
public function getDelivery(): ?string
{
return $this->delivery;
}
public function setDelivery(string $delivery): self
{
$this->delivery = $delivery;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): self
{
$this->address = $address;
return $this;
}
public function getLat(): ?string
{
return $this->lat;
}
public function setLat(string $lat): self
{
$this->lat = $lat;
return $this;
}
public function getLon(): ?string
{
return $this->lon;
}
public function setLon(string $lon): self
{
$this->lon = $lon;
return $this;
}
public function getWorktime(): ?string
{
return $this->worktime;
}
public function setWorktime(string $worktime): self
{
$this->worktime = $worktime;
return $this;
}
public function getPostcode(): ?string
{
return $this->postcode;
}
public function setPostcode(string $postcode): self
{
$this->postcode = $postcode;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
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 getComment(): ?string
{
return $this->comment;
}
public function setComment(string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getUpdated(): ?int
{
return $this->updated;
}
public function setUpdated(int $updated): self
{
$this->updated = $updated;
return $this;
}
}