src/Entity/CRM/BranchConfig.php line 10

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Entity\CRM\OrderStatus;
  4. use App\Repository\BranchConfigRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassBranchConfigRepository::class)]
  7. class BranchConfig
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private int $daysBeforePaymentDateShow 1;
  15.     #[ORM\OneToOne(inversedBy'branchConfig'cascade: ['persist''remove'])]
  16.     private Branch $branch;
  17.     #[ORM\Column]
  18.     private int $daysToLawFirm 30;
  19.     #[ORM\Column]
  20.     private ?int $daysToNotifyAboutVindication 7;
  21.     #[ORM\Column]
  22.     private ?int $daysToNotifyAboutContractExpiration 30;
  23.     #[ORM\Column]
  24.     private ?int $firstNotificationOfInstalment 3;
  25.     #[ORM\Column]
  26.     private ?int $secondNotificationOfInstalment 0;
  27.     #[ORM\Column]
  28.     private ?int $daysToChangeSupervisorOfAnOrder null;
  29.     #[ORM\ManyToOne(inversedBy'branchConfigs')]
  30.     private ?OrderStatus $agreementSignedStatus null;
  31.     #[ORM\Column]
  32.     private ?int $daysToNotifyAboutUpdateAgreementDocs 180;
  33.     #[ORM\Column]
  34.     private ?int $daysToNotifyAboutCustomerFeedback 14;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getDaysBeforePaymentDateShow(): ?int
  40.     {
  41.         return $this->daysBeforePaymentDateShow;
  42.     }
  43.     public function setDaysBeforePaymentDateShow(int $daysBeforePaymentDateShow): static
  44.     {
  45.         $this->daysBeforePaymentDateShow $daysBeforePaymentDateShow;
  46.         return $this;
  47.     }
  48.     public function getBranch(): ?Branch
  49.     {
  50.         return $this->branch;
  51.     }
  52.     public function setBranch(Branch $branch): static
  53.     {
  54.         $this->branch $branch;
  55.         return $this;
  56.     }
  57.     public function getDaysToLawFirm(): ?int
  58.     {
  59.         return $this->daysToLawFirm;
  60.     }
  61.     public function setDaysToLawFirm(int $daysToLawFirm): static
  62.     {
  63.         $this->daysToLawFirm $daysToLawFirm;
  64.         return $this;
  65.     }
  66.     public function getDaysToNotifyAboutVindication(): ?int
  67.     {
  68.         return $this->daysToNotifyAboutVindication;
  69.     }
  70.     public function setDaysToNotifyAboutVindication(int $daysToNotifyAboutVindication): static
  71.     {
  72.         $this->daysToNotifyAboutVindication $daysToNotifyAboutVindication;
  73.         return $this;
  74.     }
  75.     public function getDaysToNotifyAboutContractExpiration(): ?int
  76.     {
  77.         return $this->daysToNotifyAboutContractExpiration;
  78.     }
  79.     public function setDaysToNotifyAboutContractExpiration(int $daysToNotifyAboutContractExpiration): static
  80.     {
  81.         $this->daysToNotifyAboutContractExpiration $daysToNotifyAboutContractExpiration;
  82.         return $this;
  83.     }
  84.     public function getFirstNotificationOfInstalment(): ?int
  85.     {
  86.         return $this->firstNotificationOfInstalment;
  87.     }
  88.     public function setFirstNotificationOfInstalment(int $firstNotificationOfInstalment): static
  89.     {
  90.         $this->firstNotificationOfInstalment $firstNotificationOfInstalment;
  91.         return $this;
  92.     }
  93.     public function getSecondNotificationOfInstalment(): ?int
  94.     {
  95.         return $this->secondNotificationOfInstalment;
  96.     }
  97.     public function setSecondNotificationOfInstalment(int $secondNotificationOfInstalment): static
  98.     {
  99.         $this->secondNotificationOfInstalment $secondNotificationOfInstalment;
  100.         return $this;
  101.     }
  102.     public function getDaysToChangeSupervisorOfAnOrder(): ?int
  103.     {
  104.         return $this->daysToChangeSupervisorOfAnOrder;
  105.     }
  106.     public function setDaysToChangeSupervisorOfAnOrder(int $daysToChangeSupervisorOfAnOrder): static
  107.     {
  108.         $this->daysToChangeSupervisorOfAnOrder $daysToChangeSupervisorOfAnOrder;
  109.         return $this;
  110.     }
  111.     public function getAgreementSignedStatus(): ?OrderStatus
  112.     {
  113.         return $this->agreementSignedStatus;
  114.     }
  115.     public function setAgreementSignedStatus(?OrderStatus $agreementSignedStatus): static
  116.     {
  117.         $this->agreementSignedStatus $agreementSignedStatus;
  118.         return $this;
  119.     }
  120.     public function getDaysToNotifyAboutUpdateAgreementDocs(): ?int
  121.     {
  122.         return $this->daysToNotifyAboutUpdateAgreementDocs;
  123.     }
  124.     public function setDaysToNotifyAboutUpdateAgreementDocs(int $daysToNotifyAboutUpdateAgreementDocs): static
  125.     {
  126.         $this->daysToNotifyAboutUpdateAgreementDocs $daysToNotifyAboutUpdateAgreementDocs;
  127.         return $this;
  128.     }
  129.     public function getDaysToNotifyAboutCustomerFeedback(): ?int
  130.     {
  131.         return $this->daysToNotifyAboutCustomerFeedback;
  132.     }
  133.     public function setDaysToNotifyAboutCustomerFeedback(int $daysToNotifyAboutCustomerFeedback): static
  134.     {
  135.         $this->daysToNotifyAboutCustomerFeedback $daysToNotifyAboutCustomerFeedback;
  136.         return $this;
  137.     }
  138. }