<?phpnamespace App\Entity\Gos;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\Gos\OrdersAwaitingRepository") */class OrdersAwaiting{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\OneToOne(targetEntity="App\Entity\Gos\OrderPart", inversedBy="ordersAwaiting", cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=false) */ private $orderPart; /** * @ORM\Column(type="datetime") */ private $endDate; /** * @ORM\Column(type="boolean", nullable=true) */ private $isCancelled; /** * @ORM\Column(type="boolean", nullable=true) */ private $isFinished; /** * @ORM\Column(type="datetime", nullable=true) */ private $finishDate; public function getId(): ?int { return $this->id; } public function getOrderPart(): ?OrderPart { return $this->orderPart; } public function setOrderPart(OrderPart $orderPart): self { $this->orderPart = $orderPart; return $this; } public function getEndDate(): ?\DateTimeInterface { return $this->endDate; } public function setEndDate(\DateTimeInterface $endDate): self { $this->endDate = $endDate; return $this; } public function getIsCancelled(): ?bool { return $this->isCancelled; } public function setIsCancelled(?bool $isCancelled): self { $this->isCancelled = $isCancelled; return $this; } public function getIsFinished(): ?bool { return $this->isFinished; } public function setIsFinished(?bool $isFinished): self { $this->isFinished = $isFinished; return $this; } public function getFinishDate(): ?\DateTimeInterface { return $this->finishDate; } public function setFinishDate(?\DateTimeInterface $finishDate): self { $this->finishDate = $finishDate; return $this; }}