src/Entity/CRM/OrderStatus.php line 11

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\OrderStatusRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassOrderStatusRepository::class)]
  8. class OrderStatus
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column]
  17.     private ?bool $implementation null;
  18.     #[ORM\OneToMany(mappedBy'orderStatus'targetEntityOrder::class)]
  19.     private Collection $orders;
  20.     #[ORM\Column]
  21.     private ?bool $isActive null;
  22.     #[ORM\Column]
  23.     private ?bool $debt null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?bool $newOrderBlocked null;
  26.     #[ORM\Column]
  27.     private ?bool $autoMailStart null;
  28.     #[ORM\Column]
  29.     private ?int $workflowOrder null;
  30.     #[ORM\Column]
  31.     private ?bool $payed null;
  32.     #[ORM\Column]
  33.     private ?bool $forAgreementExtension null;
  34.     #[ORM\Column]
  35.     private ?bool $forAgreementExtensionAuto null;
  36.     #[ORM\Column]
  37.     private ?bool $notInReport null;
  38.     #[ORM\Column]
  39.     private ?bool $consultantCanChange null;
  40.     #[ORM\Column]
  41.     private ?bool $orderCancelled null;
  42.     #[ORM\Column]
  43.     private ?bool $implementationForAgreement null;
  44.     #[ORM\OneToMany(mappedBy'agreementSignedStatus'targetEntityBranchConfig::class)]
  45.     private Collection $branchConfigs;
  46.     #[ORM\Column]
  47.     private ?bool $orderReturned null;
  48.     #[ORM\Column]
  49.     private ?bool $forPoints null;
  50.     public function __construct()
  51.     {
  52.         $this->orders = new ArrayCollection();
  53.         $this->branchConfigs = new ArrayCollection();
  54.     }
  55.     public function __toString(): string
  56.     {
  57.         return $this->getName();
  58.     }
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getName(): ?string
  64.     {
  65.         return $this->name;
  66.     }
  67.     public function setName(string $name): self
  68.     {
  69.         $this->name $name;
  70.         return $this;
  71.     }
  72.     public function getImplementation(): ?bool
  73.     {
  74.         return $this->implementation;
  75.     }
  76.     public function setImplementation(?bool $implementation): self
  77.     {
  78.         $this->implementation $implementation;
  79.         return $this;
  80.     }
  81.     /**
  82.      * @return Collection<int, Order>
  83.      */
  84.     public function getOrders(): Collection
  85.     {
  86.         return $this->orders;
  87.     }
  88.     public function addOrder(Order $order): self
  89.     {
  90.         if (!$this->orders->contains($order)) {
  91.             $this->orders->add($order);
  92.             $order->setOrderStatus($this);
  93.         }
  94.         return $this;
  95.     }
  96.     public function removeOrder(Order $order): self
  97.     {
  98.         if ($this->orders->removeElement($order)) {
  99.             // set the owning side to null (unless already changed)
  100.             if ($order->getOrderStatus() === $this) {
  101.                 $order->setOrderStatus(null);
  102.             }
  103.         }
  104.         return $this;
  105.     }
  106.     public function isIsActive(): ?bool
  107.     {
  108.         return $this->isActive;
  109.     }
  110.     public function setIsActive(bool $isActive): self
  111.     {
  112.         $this->isActive $isActive;
  113.         return $this;
  114.     }
  115.     public function isDebt(): ?bool
  116.     {
  117.         return $this->debt;
  118.     }
  119.     public function setDebt(bool $debt): static
  120.     {
  121.         $this->debt $debt;
  122.         return $this;
  123.     }
  124.     public function isNewOrderBlocked(): ?bool
  125.     {
  126.         return $this->newOrderBlocked;
  127.     }
  128.     public function setNewOrderBlocked(?bool $newOrderBlocked): static
  129.     {
  130.         $this->newOrderBlocked $newOrderBlocked;
  131.         return $this;
  132.     }
  133.     public function isAutoMailStart(): ?bool
  134.     {
  135.         return $this->autoMailStart;
  136.     }
  137.     public function setAutoMailStart(bool $autoMailStart): static
  138.     {
  139.         $this->autoMailStart $autoMailStart;
  140.         return $this;
  141.     }
  142.     public function getWorkflowOrder(): ?int
  143.     {
  144.         return $this->workflowOrder;
  145.     }
  146.     public function setWorkflowOrder(int $workflowOrder): static
  147.     {
  148.         $this->workflowOrder $workflowOrder;
  149.         return $this;
  150.     }
  151.     public function getPayed(): ?bool
  152.     {
  153.         return $this->payed;
  154.     }
  155.     public function setPayed(bool $payed): static
  156.     {
  157.         $this->payed $payed;
  158.         return $this;
  159.     }
  160.     public function isForAgreementExtension(): ?bool
  161.     {
  162.         return $this->forAgreementExtension;
  163.     }
  164.     public function setForAgreementExtension(bool $forAgreementExtension): static
  165.     {
  166.         $this->forAgreementExtension $forAgreementExtension;
  167.         return $this;
  168.     }
  169.     public function isForAgreementExtensionAuto(): ?bool
  170.     {
  171.         return $this->forAgreementExtensionAuto;
  172.     }
  173.     public function setForAgreementExtensionAuto(?bool $forAgreementExtensionAuto): void
  174.     {
  175.         $this->forAgreementExtensionAuto $forAgreementExtensionAuto;
  176.     }
  177.     public function isNotInReport(): ?bool
  178.     {
  179.         return $this->notInReport;
  180.     }
  181.     public function setNotInReport(bool $notInReport): static
  182.     {
  183.         $this->notInReport $notInReport;
  184.         return $this;
  185.     }
  186.     public function isConsultantCanChange(): ?bool
  187.     {
  188.         return $this->consultantCanChange;
  189.     }
  190.     public function setConsultantCanChange(bool $consultantCanChange): static
  191.     {
  192.         $this->consultantCanChange $consultantCanChange;
  193.         return $this;
  194.     }
  195.     public function isOrderCancelled(): ?bool
  196.     {
  197.         return $this->orderCancelled;
  198.     }
  199.     public function setOrderCancelled(bool $orderCancelled): static
  200.     {
  201.         $this->orderCancelled $orderCancelled;
  202.         return $this;
  203.     }
  204.     public function isImplementationForAgreement(): ?bool
  205.     {
  206.         return $this->implementationForAgreement;
  207.     }
  208.     public function setImplementationForAgreement(bool $implementationForAgreement): static
  209.     {
  210.         $this->implementationForAgreement $implementationForAgreement;
  211.         return $this;
  212.     }
  213.     /**
  214.      * @return Collection<int, BranchConfig>
  215.      */
  216.     public function getBranchConfigs(): Collection
  217.     {
  218.         return $this->branchConfigs;
  219.     }
  220.     public function addBranchConfig(BranchConfig $branchConfig): static
  221.     {
  222.         if (!$this->branchConfigs->contains($branchConfig)) {
  223.             $this->branchConfigs->add($branchConfig);
  224.             $branchConfig->setAgreementSignedStatus($this);
  225.         }
  226.         return $this;
  227.     }
  228.     public function removeBranchConfig(BranchConfig $branchConfig): static
  229.     {
  230.         if ($this->branchConfigs->removeElement($branchConfig)) {
  231.             // set the owning side to null (unless already changed)
  232.             if ($branchConfig->getAgreementSignedStatus() === $this) {
  233.                 $branchConfig->setAgreementSignedStatus(null);
  234.             }
  235.         }
  236.         return $this;
  237.     }
  238.     public function isOrderReturned(): ?bool
  239.     {
  240.         return $this->orderReturned;
  241.     }
  242.     public function setOrderReturned(bool $orderReturned): static
  243.     {
  244.         $this->orderReturned $orderReturned;
  245.         return $this;
  246.     }
  247.     public function isForPoints(): ?bool
  248.     {
  249.         return $this->forPoints;
  250.     }
  251.     public function setForPoints(bool $forPoints): static
  252.     {
  253.         $this->forPoints $forPoints;
  254.         return $this;
  255.     }
  256. }