src/Entity/Gos/OrdersAwaiting.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\Gos\OrdersAwaitingRepository")
  6.  */
  7. class OrdersAwaiting
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\OneToOne(targetEntity="App\Entity\Gos\OrderPart", inversedBy="ordersAwaiting", cascade={"persist", "remove"})
  17.      * @ORM\JoinColumn(nullable=false)
  18.      */
  19.     private $orderPart;
  20.     /**
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $endDate;
  24.     /**
  25.      * @ORM\Column(type="boolean", nullable=true)
  26.      */
  27.     private $isCancelled;
  28.     /**
  29.      * @ORM\Column(type="boolean", nullable=true)
  30.      */
  31.     private $isFinished;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private $finishDate;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getOrderPart(): ?OrderPart
  41.     {
  42.         return $this->orderPart;
  43.     }
  44.     public function setOrderPart(OrderPart $orderPart): self
  45.     {
  46.         $this->orderPart $orderPart;
  47.         return $this;
  48.     }
  49.     public function getEndDate(): ?\DateTimeInterface
  50.     {
  51.         return $this->endDate;
  52.     }
  53.     public function setEndDate(\DateTimeInterface $endDate): self
  54.     {
  55.         $this->endDate $endDate;
  56.         return $this;
  57.     }
  58.     public function getIsCancelled(): ?bool
  59.     {
  60.         return $this->isCancelled;
  61.     }
  62.     public function setIsCancelled(?bool $isCancelled): self
  63.     {
  64.         $this->isCancelled $isCancelled;
  65.         return $this;
  66.     }
  67.     public function getIsFinished(): ?bool
  68.     {
  69.         return $this->isFinished;
  70.     }
  71.     public function setIsFinished(?bool $isFinished): self
  72.     {
  73.         $this->isFinished $isFinished;
  74.         return $this;
  75.     }
  76.     public function getFinishDate(): ?\DateTimeInterface
  77.     {
  78.         return $this->finishDate;
  79.     }
  80.     public function setFinishDate(?\DateTimeInterface $finishDate): self
  81.     {
  82.         $this->finishDate $finishDate;
  83.         return $this;
  84.     }
  85. }