src/Entity/StorePlaceData.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StorePlaceDataRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=StorePlaceDataRepository::class)
  7.  */
  8. class StorePlaceData
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $placeId;
  20.     /**
  21.      * @ORM\Column(type="float", nullable=true)
  22.      */
  23.     private $rating;
  24.     /**
  25.      * @ORM\Column(type="integer", nullable=true)
  26.      */
  27.     private $userRatingCount;
  28.     /**
  29.      * @ORM\Column(type="datetime_immutable", nullable=true)
  30.      */
  31.     private $lastFetchedAt;
  32.     /**
  33.      * @ORM\Column(type="datetime_immutable", nullable=true)
  34.      */
  35.     private $noPlaceIdDetectedAt;
  36.     /**
  37.      * @ORM\OneToOne(targetEntity=Store::class, inversedBy="storePlaceData", cascade={"persist", "remove"})
  38.      */
  39.     private $store;
  40.     /**
  41.      * @ORM\Column(type="json", nullable=true)
  42.      */
  43.     private $openHoursWeekdayDescriptions = [];
  44.     /**
  45.      * @ORM\Column(type="json", nullable=true)
  46.      */
  47.     private $nearbyTransit = [];
  48.     /**
  49.      * @ORM\Column(type="datetime_immutable", nullable=true)
  50.      */
  51.     private $placeIdLastRefreshAt;
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getPlaceId(): ?string
  57.     {
  58.         return $this->placeId;
  59.     }
  60.     public function setPlaceId(?string $placeId): self
  61.     {
  62.         $this->placeId $placeId;
  63.         return $this;
  64.     }
  65.     public function getRating(): ?float
  66.     {
  67.         return $this->rating;
  68.     }
  69.     public function setRating(?float $rating): self
  70.     {
  71.         $this->rating $rating;
  72.         return $this;
  73.     }
  74.     public function getUserRatingCount(): ?int
  75.     {
  76.         return $this->userRatingCount;
  77.     }
  78.     public function setUserRatingCount(?int $userRatingCount): self
  79.     {
  80.         $this->userRatingCount $userRatingCount;
  81.         return $this;
  82.     }
  83.     public function getLastFetchedAt(): ?\DateTimeImmutable
  84.     {
  85.         return $this->lastFetchedAt;
  86.     }
  87.     public function setLastFetchedAt(?\DateTimeImmutable $lastFetchedAt): self
  88.     {
  89.         $this->lastFetchedAt $lastFetchedAt;
  90.         return $this;
  91.     }
  92.     public function getNoPlaceIdDetectedAt(): ?\DateTimeImmutable
  93.     {
  94.         return $this->noPlaceIdDetectedAt;
  95.     }
  96.     public function setNoPlaceIdDetectedAt(?\DateTimeImmutable $noPlaceIdDetectedAt): self
  97.     {
  98.         $this->noPlaceIdDetectedAt $noPlaceIdDetectedAt;
  99.         return $this;
  100.     }
  101.     public function getStore(): ?Store
  102.     {
  103.         return $this->store;
  104.     }
  105.     public function setStore(?Store $store): self
  106.     {
  107.         $this->store $store;
  108.         return $this;
  109.     }
  110.     public function getOpenHoursWeekdayDescriptions(): ?array
  111.     {
  112.         return $this->openHoursWeekdayDescriptions;
  113.     }
  114.     public function setOpenHoursWeekdayDescriptions(?array $openHoursWeekdayDescriptions): self
  115.     {
  116.         $this->openHoursWeekdayDescriptions $openHoursWeekdayDescriptions;
  117.         return $this;
  118.     }
  119.     public function getNearbyTransit(): ?array
  120.     {
  121.         return $this->nearbyTransit;
  122.     }
  123.     public function setNearbyTransit(?array $nearbyTransit): self
  124.     {
  125.         $this->nearbyTransit $nearbyTransit;
  126.         return $this;
  127.     }
  128.     public function getPlaceIdLastRefreshAt(): ?\DateTimeImmutable
  129.     {
  130.         return $this->placeIdLastRefreshAt;
  131.     }
  132.     public function setPlaceIdLastRefreshAt(?\DateTimeImmutable $placeIdLastRefreshAt): self
  133.     {
  134.         $this->placeIdLastRefreshAt $placeIdLastRefreshAt;
  135.         return $this;
  136.     }
  137. }