src/Entity/Gos/Embeddable/BufferedShopOrderPart.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\Embeddable;
  3. use App\Enum\BufferedShopOrderStatus;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /** @ORM\Embeddable */
  6. final class BufferedShopOrderPart
  7. {
  8.     /** @ORM\Column(type="boolean", options={"comment": "Sklep Buforowy GOS - zamówienie jest odpowiednie dla Sklepu Buforowego"}) */
  9.     private bool $isEligible false;
  10.     /** @ORM\Column(type="string", length=255, nullable=true, enumType="App\Enum\BufferedShopOrderStatus", options={"comment": "Sklep Buforowy GOS - status zamówienia"}) */
  11.     private BufferedShopOrderStatus $status;
  12.     /** @ORM\Column(type="datetime_immutable", nullable=true, options={"comment": "Sklep Buforowy GOS - data eksportu"}) */
  13.     private ?\DateTimeImmutable $exportedAt;
  14.     /** @ORM\Column(type="datetime_immutable", nullable=true, options={"comment": "Sklep Buforowy GOS - data akceptacji"}) */
  15.     private ?\DateTimeImmutable $acceptedAt;
  16.     /** @ORM\Column(type="datetime_immutable", nullable=true, options={"comment": "Sklep Buforowy GOS - data wydruku"}) */
  17.     private ?\DateTimeImmutable $printedAt;
  18.     /** @ORM\Column(type="boolean", options={"comment": "Sklep Buforowy GOS - zamówienie jest priorytetowe"}) */
  19.     private bool $isPriority false;
  20.     public function __construct()
  21.     {
  22.         $this->status BufferedShopOrderStatus::Accepted;
  23.         $this->acceptedAt = new \DateTimeImmutable();
  24.     }
  25.     public function isEligible(): bool
  26.     {
  27.         return $this->isEligible;
  28.     }
  29.     public function setIsEligible(bool $isEligible): self
  30.     {
  31.         $this->isEligible $isEligible;
  32.         return $this;
  33.     }
  34.     public function getStatus(): BufferedShopOrderStatus
  35.     {
  36.         return $this->status;
  37.     }
  38.     public function setStatus(BufferedShopOrderStatus $status): self
  39.     {
  40.         $this->status $status;
  41.         return $this;
  42.     }
  43.     public function getExportedAt(): ?\DateTimeImmutable
  44.     {
  45.         return $this->exportedAt;
  46.     }
  47.     public function setExportedAt(?\DateTimeImmutable $exportedAt): self
  48.     {
  49.         $this->exportedAt $exportedAt;
  50.         return $this;
  51.     }
  52.     public function getAcceptedAt(): ?\DateTimeImmutable
  53.     {
  54.         return $this->acceptedAt;
  55.     }
  56.     public function setAcceptedAt(?\DateTimeImmutable $acceptedAt): self
  57.     {
  58.         $this->acceptedAt $acceptedAt;
  59.         return $this;
  60.     }
  61.     public function getPrintedAt(): ?\DateTimeImmutable
  62.     {
  63.         return $this->printedAt;
  64.     }
  65.     public function setPrintedAt(?\DateTimeImmutable $printedAt): self
  66.     {
  67.         $this->printedAt $printedAt;
  68.         return $this;
  69.     }
  70.     public function isPriority(): bool
  71.     {
  72.         return $this->isPriority;
  73.     }
  74.     public function setIsPriority(bool $isPriority): self
  75.     {
  76.         $this->isPriority $isPriority;
  77.         return $this;
  78.     }
  79. }