src/Entity/CRM/OrderStatus.php line 11
<?phpnamespace App\Entity\CRM;use App\Repository\OrderStatusRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: OrderStatusRepository::class)]class OrderStatus{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column]private ?bool $implementation = null;#[ORM\OneToMany(mappedBy: 'orderStatus', targetEntity: Order::class)]private Collection $orders;#[ORM\Column]private ?bool $isActive = null;#[ORM\Column]private ?bool $debt = null;#[ORM\Column(nullable: true)]private ?bool $newOrderBlocked = null;#[ORM\Column]private ?bool $autoMailStart = null;#[ORM\Column]private ?int $workflowOrder = null;#[ORM\Column]private ?bool $payed = null;#[ORM\Column]private ?bool $forAgreementExtension = null;#[ORM\Column]private ?bool $forAgreementExtensionAuto = null;#[ORM\Column]private ?bool $notInReport = null;#[ORM\Column]private ?bool $consultantCanChange = null;#[ORM\Column]private ?bool $orderCancelled = null;#[ORM\Column]private ?bool $implementationForAgreement = null;#[ORM\OneToMany(mappedBy: 'agreementSignedStatus', targetEntity: BranchConfig::class)]private Collection $branchConfigs;#[ORM\Column]private ?bool $orderReturned = null;#[ORM\Column]private ?bool $forPoints = null;public function __construct(){$this->orders = new ArrayCollection();$this->branchConfigs = new ArrayCollection();}public function __toString(): string{return $this->getName();}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getImplementation(): ?bool{return $this->implementation;}public function setImplementation(?bool $implementation): self{$this->implementation = $implementation;return $this;}/*** @return Collection<int, Order>*/public function getOrders(): Collection{return $this->orders;}public function addOrder(Order $order): self{if (!$this->orders->contains($order)) {$this->orders->add($order);$order->setOrderStatus($this);}return $this;}public function removeOrder(Order $order): self{if ($this->orders->removeElement($order)) {// set the owning side to null (unless already changed)if ($order->getOrderStatus() === $this) {$order->setOrderStatus(null);}}return $this;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(bool $isActive): self{$this->isActive = $isActive;return $this;}public function isDebt(): ?bool{return $this->debt;}public function setDebt(bool $debt): static{$this->debt = $debt;return $this;}public function isNewOrderBlocked(): ?bool{return $this->newOrderBlocked;}public function setNewOrderBlocked(?bool $newOrderBlocked): static{$this->newOrderBlocked = $newOrderBlocked;return $this;}public function isAutoMailStart(): ?bool{return $this->autoMailStart;}public function setAutoMailStart(bool $autoMailStart): static{$this->autoMailStart = $autoMailStart;return $this;}public function getWorkflowOrder(): ?int{return $this->workflowOrder;}public function setWorkflowOrder(int $workflowOrder): static{$this->workflowOrder = $workflowOrder;return $this;}public function getPayed(): ?bool{return $this->payed;}public function setPayed(bool $payed): static{$this->payed = $payed;return $this;}public function isForAgreementExtension(): ?bool{return $this->forAgreementExtension;}public function setForAgreementExtension(bool $forAgreementExtension): static{$this->forAgreementExtension = $forAgreementExtension;return $this;}public function isForAgreementExtensionAuto(): ?bool{return $this->forAgreementExtensionAuto;}public function setForAgreementExtensionAuto(?bool $forAgreementExtensionAuto): void{$this->forAgreementExtensionAuto = $forAgreementExtensionAuto;}public function isNotInReport(): ?bool{return $this->notInReport;}public function setNotInReport(bool $notInReport): static{$this->notInReport = $notInReport;return $this;}public function isConsultantCanChange(): ?bool{return $this->consultantCanChange;}public function setConsultantCanChange(bool $consultantCanChange): static{$this->consultantCanChange = $consultantCanChange;return $this;}public function isOrderCancelled(): ?bool{return $this->orderCancelled;}public function setOrderCancelled(bool $orderCancelled): static{$this->orderCancelled = $orderCancelled;return $this;}public function isImplementationForAgreement(): ?bool{return $this->implementationForAgreement;}public function setImplementationForAgreement(bool $implementationForAgreement): static{$this->implementationForAgreement = $implementationForAgreement;return $this;}/*** @return Collection<int, BranchConfig>*/public function getBranchConfigs(): Collection{return $this->branchConfigs;}public function addBranchConfig(BranchConfig $branchConfig): static{if (!$this->branchConfigs->contains($branchConfig)) {$this->branchConfigs->add($branchConfig);$branchConfig->setAgreementSignedStatus($this);}return $this;}public function removeBranchConfig(BranchConfig $branchConfig): static{if ($this->branchConfigs->removeElement($branchConfig)) {// set the owning side to null (unless already changed)if ($branchConfig->getAgreementSignedStatus() === $this) {$branchConfig->setAgreementSignedStatus(null);}}return $this;}public function isOrderReturned(): ?bool{return $this->orderReturned;}public function setOrderReturned(bool $orderReturned): static{$this->orderReturned = $orderReturned;return $this;}public function isForPoints(): ?bool{return $this->forPoints;}public function setForPoints(bool $forPoints): static{$this->forPoints = $forPoints;return $this;}}