src/Entity/PostOffice.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping\Index;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\PostofficeRepository;
  6. use ApiPlatform\Core\Annotation\ApiResource;
  7. #[ORM\Entity(repositoryClassPostofficeRepository::class)]
  8. #[Index(name"postoffice_delivery"columns: ["delivery"])]
  9. class PostOffice implements EntityInterface
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $delivery null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $name null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $address null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $lat null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $lon null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $worktime null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $postcode null;
  29.     #[ORM\Column(length255)]
  30.     private ?string $code null;
  31.     #[ORM\Column(length255)]
  32.     private ?string $phone null;
  33.     #[ORM\Column(length255)]
  34.     private ?string $email null;
  35.     #[ORM\Column(length1000)]
  36.     private ?string $comment null;
  37.     #[ORM\Column]
  38.     private ?int $updated null;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getDelivery(): ?string
  44.     {
  45.         return $this->delivery;
  46.     }
  47.     public function setDelivery(string $delivery): self
  48.     {
  49.         $this->delivery $delivery;
  50.         return $this;
  51.     }
  52.     public function getName(): ?string
  53.     {
  54.         return $this->name;
  55.     }
  56.     public function setName(string $name): self
  57.     {
  58.         $this->name $name;
  59.         return $this;
  60.     }
  61.     public function getAddress(): ?string
  62.     {
  63.         return $this->address;
  64.     }
  65.     public function setAddress(string $address): self
  66.     {
  67.         $this->address $address;
  68.         return $this;
  69.     }
  70.     public function getLat(): ?string
  71.     {
  72.         return $this->lat;
  73.     }
  74.     public function setLat(string $lat): self
  75.     {
  76.         $this->lat $lat;
  77.         return $this;
  78.     }
  79.     public function getLon(): ?string
  80.     {
  81.         return $this->lon;
  82.     }
  83.     public function setLon(string $lon): self
  84.     {
  85.         $this->lon $lon;
  86.         return $this;
  87.     }
  88.     public function getWorktime(): ?string
  89.     {
  90.         return $this->worktime;
  91.     }
  92.     public function setWorktime(string $worktime): self
  93.     {
  94.         $this->worktime $worktime;
  95.         return $this;
  96.     }
  97.     public function getPostcode(): ?string
  98.     {
  99.         return $this->postcode;
  100.     }
  101.     public function setPostcode(string $postcode): self
  102.     {
  103.         $this->postcode $postcode;
  104.         return $this;
  105.     }
  106.     public function getCode(): ?string
  107.     {
  108.         return $this->code;
  109.     }
  110.     public function setCode(string $code): self
  111.     {
  112.         $this->code $code;
  113.         return $this;
  114.     }
  115.     public function getPhone(): ?string
  116.     {
  117.         return $this->phone;
  118.     }
  119.     public function setPhone(string $phone): self
  120.     {
  121.         $this->phone $phone;
  122.         return $this;
  123.     }
  124.     public function getEmail(): ?string
  125.     {
  126.         return $this->email;
  127.     }
  128.     public function setEmail(string $email): self
  129.     {
  130.         $this->email $email;
  131.         return $this;
  132.     }
  133.     public function getComment(): ?string
  134.     {
  135.         return $this->comment;
  136.     }
  137.     public function setComment(string $comment): self
  138.     {
  139.         $this->comment $comment;
  140.         return $this;
  141.     }
  142.     public function getUpdated(): ?int
  143.     {
  144.         return $this->updated;
  145.     }
  146.     public function setUpdated(int $updated): self
  147.     {
  148.         $this->updated $updated;
  149.         return $this;
  150.     }
  151. }