src/Entity/Point.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PointRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table(name'MLDev_Point')]
  6. #[ORM\Entity(repositoryClassPointRepository::class)]
  7. class Point
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(type'string'length255nullabletrue)]
  14.     private ?string $city null;
  15.     #[ORM\Column(type'string'length255nullabletrue)]
  16.     private ?string $address null;
  17.     #[ORM\Column(type'string'length255nullabletrue)]
  18.     private ?string $worktime null;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private ?string $contacts null;
  21.     #[ORM\Column(type'json'nullabletrue)]
  22.     private ?array $coordinates null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getCity(): ?string
  28.     {
  29.         return $this->city;
  30.     }
  31.     public function setCity(?string $city): self
  32.     {
  33.         $this->city $city;
  34.         return $this;
  35.     }
  36.     public function getAddress(): ?string
  37.     {
  38.         return $this->address;
  39.     }
  40.     public function setAddress(?string $address): self
  41.     {
  42.         $this->address $address;
  43.         return $this;
  44.     }
  45.     public function getWorktime(): ?string
  46.     {
  47.         return $this->worktime;
  48.     }
  49.     public function setWorktime(?string $worktime): self
  50.     {
  51.         $this->worktime $worktime;
  52.         return $this;
  53.     }
  54.     public function getContacts(): ?string
  55.     {
  56.         return $this->contacts;
  57.     }
  58.     public function setContacts(?string $contacts): self
  59.     {
  60.         $this->contacts $contacts;
  61.         return $this;
  62.     }
  63.     public function getCoordinates(): ?array
  64.     {
  65.         return $this->coordinates;
  66.     }
  67.     public function setCoordinates(?array $coordinates): self
  68.     {
  69.         $this->coordinates $coordinates;
  70.         return $this;
  71.     }
  72. }