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.     #[ORM\Column]
  36.     private bool $allowFtpSources false;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getDaysBeforePaymentDateShow(): ?int
  42.     {
  43.         return $this->daysBeforePaymentDateShow;
  44.     }
  45.     public function setDaysBeforePaymentDateShow(int $daysBeforePaymentDateShow): static
  46.     {
  47.         $this->daysBeforePaymentDateShow $daysBeforePaymentDateShow;
  48.         return $this;
  49.     }
  50.     public function getBranch(): ?Branch
  51.     {
  52.         return $this->branch;
  53.     }
  54.     public function setBranch(Branch $branch): static
  55.     {
  56.         $this->branch $branch;
  57.         return $this;
  58.     }
  59.     public function getDaysToLawFirm(): ?int
  60.     {
  61.         return $this->daysToLawFirm;
  62.     }
  63.     public function setDaysToLawFirm(int $daysToLawFirm): static
  64.     {
  65.         $this->daysToLawFirm $daysToLawFirm;
  66.         return $this;
  67.     }
  68.     public function getDaysToNotifyAboutVindication(): ?int
  69.     {
  70.         return $this->daysToNotifyAboutVindication;
  71.     }
  72.     public function setDaysToNotifyAboutVindication(int $daysToNotifyAboutVindication): static
  73.     {
  74.         $this->daysToNotifyAboutVindication $daysToNotifyAboutVindication;
  75.         return $this;
  76.     }
  77.     public function getDaysToNotifyAboutContractExpiration(): ?int
  78.     {
  79.         return $this->daysToNotifyAboutContractExpiration;
  80.     }
  81.     public function setDaysToNotifyAboutContractExpiration(int $daysToNotifyAboutContractExpiration): static
  82.     {
  83.         $this->daysToNotifyAboutContractExpiration $daysToNotifyAboutContractExpiration;
  84.         return $this;
  85.     }
  86.     public function getFirstNotificationOfInstalment(): ?int
  87.     {
  88.         return $this->firstNotificationOfInstalment;
  89.     }
  90.     public function setFirstNotificationOfInstalment(int $firstNotificationOfInstalment): static
  91.     {
  92.         $this->firstNotificationOfInstalment $firstNotificationOfInstalment;
  93.         return $this;
  94.     }
  95.     public function getSecondNotificationOfInstalment(): ?int
  96.     {
  97.         return $this->secondNotificationOfInstalment;
  98.     }
  99.     public function setSecondNotificationOfInstalment(int $secondNotificationOfInstalment): static
  100.     {
  101.         $this->secondNotificationOfInstalment $secondNotificationOfInstalment;
  102.         return $this;
  103.     }
  104.     public function getDaysToChangeSupervisorOfAnOrder(): ?int
  105.     {
  106.         return $this->daysToChangeSupervisorOfAnOrder;
  107.     }
  108.     public function setDaysToChangeSupervisorOfAnOrder(int $daysToChangeSupervisorOfAnOrder): static
  109.     {
  110.         $this->daysToChangeSupervisorOfAnOrder $daysToChangeSupervisorOfAnOrder;
  111.         return $this;
  112.     }
  113.     public function getAgreementSignedStatus(): ?OrderStatus
  114.     {
  115.         return $this->agreementSignedStatus;
  116.     }
  117.     public function setAgreementSignedStatus(?OrderStatus $agreementSignedStatus): static
  118.     {
  119.         $this->agreementSignedStatus $agreementSignedStatus;
  120.         return $this;
  121.     }
  122.     public function getDaysToNotifyAboutUpdateAgreementDocs(): ?int
  123.     {
  124.         return $this->daysToNotifyAboutUpdateAgreementDocs;
  125.     }
  126.     public function setDaysToNotifyAboutUpdateAgreementDocs(int $daysToNotifyAboutUpdateAgreementDocs): static
  127.     {
  128.         $this->daysToNotifyAboutUpdateAgreementDocs $daysToNotifyAboutUpdateAgreementDocs;
  129.         return $this;
  130.     }
  131.     public function getDaysToNotifyAboutCustomerFeedback(): ?int
  132.     {
  133.         return $this->daysToNotifyAboutCustomerFeedback;
  134.     }
  135.     public function setDaysToNotifyAboutCustomerFeedback(int $daysToNotifyAboutCustomerFeedback): static
  136.     {
  137.         $this->daysToNotifyAboutCustomerFeedback $daysToNotifyAboutCustomerFeedback;
  138.         return $this;
  139.     }
  140.     public function isAllowFtpSources(): bool
  141.     {
  142.         return $this->allowFtpSources;
  143.     }
  144.     public function setAllowFtpSources(bool $allowFtpSources): static
  145.     {
  146.         $this->allowFtpSources $allowFtpSources;
  147.         return $this;
  148.     }
  149. }