src/Entity/Company.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Constants\ActiveConstants;
  4. use App\Repository\CompanyRepository;
  5. use App\Traits\ActivityTrait;
  6. use App\Traits\SlugTrait;
  7. use App\Traits\TimeTrackTrait;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. use Doctrine\Common\Collections\Collection;
  10. use Doctrine\DBAL\Types\Types;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Symfony\Component\Validator\Constraints as Assert;
  13. #[ORM\Entity(repositoryClassCompanyRepository::class)]
  14. #[ORM\Table(name'company')]
  15. #[ORM\HasLifecycleCallbacks]
  16. class Company
  17. {
  18.     use SlugTrait;
  19.     use TimeTrackTrait;
  20.     use ActivityTrait;
  21.     /**
  22.      * @var int
  23.      */
  24.     #[ORM\Column(name'id'type'integer')]
  25.     #[ORM\Id]
  26.     #[ORM\GeneratedValue(strategy'AUTO')]
  27.     private $id;
  28.     #[ORM\ManyToOne(targetEntity"App\Entity\SonataMediaMedia"cascade: ['all'])]
  29.     #[ORM\JoinColumn(name'main_image_id'nullabletrueonDelete'SET NULL')]
  30.     protected $mainImage;
  31.     #[ORM\ManyToOne(targetEntity"App\Entity\SonataMediaMedia"cascade: ['all'])]
  32.     #[ORM\JoinColumn(name'favicon_id'nullabletrueonDelete'SET NULL')]
  33.     protected $favicon;
  34.     #[ORM\Column(type'text')]
  35.     private ?string $fopData null;
  36.     #[ORM\Column(type'text')]
  37.     private ?string $fop null;
  38.     #[ORM\Column(type'text')]
  39.     private ?string $offert null;
  40.     #[ORM\Column(type'text'nullabletrue)]
  41.     private ?string $sirTrevorContent null;
  42.     #[ORM\Column(name'tax_active'type'boolean'options: ['default' => 1])]
  43.     private $taxActive null;
  44.     #[ORM\Column(name'checkbox_enabled'type'boolean'options: ['default' => 0])]
  45.     private $checkboxEnabled null;
  46.     #[ORM\Column(name'checkbox_login'type'text'nullabletrue)]
  47.     private $checkboxLogin;
  48.     #[ORM\Column(name'checkbox_pass'type'text'nullabletrue)]
  49.     private $checkboxPass;
  50.     #[ORM\Column(name'checkbox_secret'type'text'nullabletrue)]
  51.     private $checkboxSecret;
  52.     #[ORM\ManyToMany(targetEntity"App\Entity\User"inversedBy'companies'cascade: ['persist'], orphanRemovalfalse)]
  53.     #[ORM\JoinTable(name'users_companies')]
  54.     #[ORM\JoinColumn(name'company_id'referencedColumnName'id'onDelete'CASCADE')]
  55.     #[ORM\InverseJoinColumn(name'user_id'referencedColumnName'id'onDelete'CASCADE')]
  56.     private $users;
  57.     #[ORM\ManyToMany(targetEntityOperator::class, mappedBy'companies')]
  58.     private Collection $operators;
  59.     #[ORM\ManyToMany(targetEntityTariff::class, mappedBy'companies')]
  60.     private Collection $tariffs;
  61.     #[ORM\ManyToMany(targetEntityPage::class, mappedBy'companies')]
  62.     private Collection $pages;
  63.     #[Assert\NotNull]
  64.     #[ORM\Column(name'title'type'string'length255)]
  65.     private $title;
  66.     #[ORM\Column(name'mail_description'type'text'nullabletrue)]
  67.     private $mailDescription;
  68.     #[ORM\Column(name'background_color'type'string'length191nullabletrue)]
  69.     protected $backgroundColor;
  70.     #[ORM\Column(name'way_for_pay_account'type'string'length191nullabletrue)]
  71.     protected $wayForPayAccount;
  72.     #[ORM\Column(name'way_for_pay_secret'type'string'length191nullabletrue)]
  73.     protected $wayForPaySecret;
  74.     #[ORM\Column(name'button_color'type'string'length191nullabletrue)]
  75.     protected $buttonColor;
  76.     #[ORM\Column(name'button_border'type'integer'length11nullabletrue)]
  77.     protected $buttonBorder;
  78.     #[ORM\Column(name'text_button_color'type'string'length191nullabletrue)]
  79.     protected $textButtonColor;
  80. //
  81.     #[ORM\Column(name'fonts'type'text'nullabletrue)]
  82.     protected $fonts;
  83.     #[ORM\Column(name'font_family'type'text'nullabletrue)]
  84.     protected $fontFamily;
  85.     #[ORM\Column(name'not_filled_button_color'type'string'length191nullabletrue)]
  86.     protected $notFilledButtonColor;
  87.     protected bool $notFilledButtonBackgroundHide false;
  88.     #[ORM\Column(name'not_filled_button_border'type'string'length191nullabletrue)]
  89.     protected $notFilledButtonBorder;
  90.     #[ORM\Column(name'not_filled_button_text_color'type'string'length191nullabletrue)]
  91.     protected $notFilledButtonTextColor;
  92.     #[ORM\Column(name'link_text_color'type'string'length191nullabletrue)]
  93.     protected $linkTextColor;
  94.     #[ORM\Column(name'back_button_color'type'string'length191nullabletrue)]
  95.     protected $backButtonColor;
  96.     #[ORM\Column(name'timer_text_color'type'string'length191nullabletrue)]
  97.     protected $timerTextColor;
  98.     #[ORM\Column(name'tariff_background_color'type'string'length191nullabletrue)]
  99.     protected $tariffBackgroundColor;
  100.     #[ORM\Column(name'tariff_text_color'type'string'length191nullabletrue)]
  101.     protected $tariffTextColor;
  102.     #[ORM\Column(name'tariff_text_align'type'string'length191nullabletrue)]
  103.     protected $tariffTextAlign;
  104.     #[ORM\Column(name'title_text_color'type'string'length191nullabletrue)]
  105.     protected $titleTextColor;
  106.     #[ORM\Column(name'title_text_align'type'string'length191nullabletrue)]
  107.     protected $titleTextAlign;
  108.     #[ORM\Column(name'second_title_text_color'type'string'length191nullabletrue)]
  109.     protected $secondTitleTextColor;
  110.     #[ORM\Column(name'second_title_text_align'type'string'length191nullabletrue)]
  111.     protected $secondTitleTextAlign;
  112.     #[ORM\Column(name'description_text_align'type'string'length191nullabletrue)]
  113.     protected $descriptionTextAlign;
  114.     #[ORM\Column(name'tariff_style_type'type'string'length191nullabletrue)]
  115.     protected $tariffStyleType;
  116.     #[ORM\ManyToMany(targetEntityFaqQuestion::class, mappedBy'companies')]
  117.     private Collection $faqQuestions;
  118.     #[ORM\OneToMany(mappedBy'company'targetEntityOrder::class)]
  119.     private Collection $orders;
  120.     #[ORM\Column(name'random_operators'type'boolean'options: ['default' => 0])]
  121.     private ?bool $randomOperators;
  122.     #[ORM\Column(name'random_operators_from'type'time'nullabletrue)]
  123.     private $randomOperatorsFrom;
  124.     #[ORM\Column(name'random_operators_to'type'time'nullabletrue)]
  125.     private $randomOperatorsTo;
  126.     #[ORM\Column(name'payment_description'type'text'nullabletrue)]
  127.     protected $paymentDescription;
  128.     #[ORM\Column(name'payment_description_kyivstar'type'text'nullabletrue)]
  129.     protected $paymentDescriptionKyivstar;
  130.     #[ORM\Column(name'payment_type'type'integer'nullablefalseoptions: ['default' => 1])]
  131.     protected $paymentType;
  132.     #[ORM\Column(name'footer_email'type'string'length191nullabletrue)]
  133.     private $footerEmail null;
  134.     #[ORM\Column(name'footer_phone'type'string'length191nullabletrue)]
  135.     private $footerPhone null;
  136.     #[ORM\Column(name'display_version'type'integer'nullablefalseoptions: ['default' => 0])]
  137.     protected $displayVersion;
  138.     #[ORM\Column(name'custom_scripts'type'text'nullabletrue)]
  139.     protected $customScripts null;
  140.     private $apiError null;
  141.     #[ORM\Column(name'promo_code_visible'type'boolean'options: ['default' => 1])]
  142.     private $promoCodeVisible true;
  143.     #[ORM\Column(name'header_visible'type'boolean'options: ['default' => 1])]
  144.     private $headerVisible true;
  145.     #[ORM\Column(name'footer_visible'type'boolean'options: ['default' => 1])]
  146.     private $footerVisible true;
  147.     public function __construct()
  148.     {
  149.         $this->users = new ArrayCollection();
  150.         $this->operators = new ArrayCollection();
  151.         $this->faqQuestions = new ArrayCollection();
  152.         $this->orders = new ArrayCollection();
  153.         $this->tariffs = new ArrayCollection();
  154.         $this->pages = new ArrayCollection();
  155.     }
  156.     public function __toString()
  157.     {
  158.         return is_null($this->getTitle()) ? '' $this->getTitle();
  159.     }
  160.     /**
  161.      * Set slug.
  162.      *
  163.      * @param string $slug
  164.      *
  165.      * @return Company
  166.      */
  167.     public function setSlug($slug)
  168.     {
  169.         $this->slug $slug;
  170.         return $this;
  171.     }
  172.     /**
  173.      * Get slug.
  174.      *
  175.      * @return string
  176.      */
  177.     public function getSlug()
  178.     {
  179.         return $this->slug;
  180.     }
  181.     /**
  182.      * Set createdAt.
  183.      *
  184.      * @param \DateTime|null $createdAt
  185.      *
  186.      * @return Company
  187.      */
  188.     public function setCreatedAt($createdAt null)
  189.     {
  190.         $this->createdAt $createdAt;
  191.         return $this;
  192.     }
  193.     /**
  194.      * Get createdAt.
  195.      *
  196.      * @return \DateTime|null
  197.      */
  198.     public function getCreatedAt()
  199.     {
  200.         return $this->createdAt;
  201.     }
  202.     /**
  203.      * Set updatedAt.
  204.      *
  205.      * @param \DateTime|null $updatedAt
  206.      *
  207.      * @return Company
  208.      */
  209.     public function setUpdatedAt($updatedAt null)
  210.     {
  211.         $this->updatedAt $updatedAt;
  212.         return $this;
  213.     }
  214.     /**
  215.      * Get updatedAt.
  216.      *
  217.      * @return \DateTime|null
  218.      */
  219.     public function getUpdatedAt()
  220.     {
  221.         return $this->updatedAt;
  222.     }
  223.     /**
  224.      * Set active.
  225.      *
  226.      * @param int $active
  227.      *
  228.      * @return Company
  229.      */
  230.     public function setActive($active)
  231.     {
  232.         $this->active $active;
  233.         return $this;
  234.     }
  235.     /**
  236.      * Get active.
  237.      *
  238.      * @return int
  239.      */
  240.     public function getActive()
  241.     {
  242.         return $this->active;
  243.     }
  244.     public function getActiveLabel(): string
  245.     {
  246.         return $this->active ActiveConstants::LABEL_YES ActiveConstants::LABEL_NO;
  247.     }
  248.     public function getId(): ?int
  249.     {
  250.         return $this->id;
  251.     }
  252.     public function getTitle(): ?string
  253.     {
  254.         return $this->title;
  255.     }
  256.     public function setTitle(string $title): static
  257.     {
  258.         $this->title $title;
  259.         return $this;
  260.     }
  261.     public function getBackgroundColor(): ?string
  262.     {
  263.         return $this->backgroundColor;
  264.     }
  265.     public function setBackgroundColor(?string $backgroundColor): static
  266.     {
  267.         $this->backgroundColor $backgroundColor;
  268.         return $this;
  269.     }
  270.     public function getButtonColor(): ?string
  271.     {
  272.         return $this->buttonColor;
  273.     }
  274.     public function setButtonColor(?string $buttonColor): static
  275.     {
  276.         $this->buttonColor $buttonColor;
  277.         return $this;
  278.     }
  279.     public function getButtonBorder(): ?int
  280.     {
  281.         return $this->buttonBorder;
  282.     }
  283.     public function setButtonBorder(?int $buttonBorder): static
  284.     {
  285.         $this->buttonBorder $buttonBorder;
  286.         return $this;
  287.     }
  288.     public function getTextButtonColor(): ?string
  289.     {
  290.         return $this->textButtonColor;
  291.     }
  292.     public function setTextButtonColor(?string $textButtonColor): static
  293.     {
  294.         $this->textButtonColor $textButtonColor;
  295.         return $this;
  296.     }
  297.     public function getMainImage(): ?SonataMediaMedia
  298.     {
  299.         return $this->mainImage;
  300.     }
  301.     public function setMainImage(?SonataMediaMedia $mainImage): static
  302.     {
  303.         $this->mainImage $mainImage;
  304.         return $this;
  305.     }
  306.     public function getFavicon(): ?SonataMediaMedia
  307.     {
  308.         return $this->favicon;
  309.     }
  310.     public function setFavicon(?SonataMediaMedia $favicon): static
  311.     {
  312.         $this->favicon $favicon;
  313.         return $this;
  314.     }
  315.     /**
  316.      * @return Collection<int, User>
  317.      */
  318.     public function getUsers(): Collection
  319.     {
  320.         return $this->users;
  321.     }
  322.     public function addUser(User $user): static
  323.     {
  324.         if (!$this->users->contains($user)) {
  325.             $this->users->add($user);
  326.         }
  327.         return $this;
  328.     }
  329.     public function removeUser(User $user): static
  330.     {
  331.         $this->users->removeElement($user);
  332.         return $this;
  333.     }
  334.     /**
  335.      * @return Collection<int, Operator>
  336.      */
  337.     public function getOperators(): Collection
  338.     {
  339.         return $this->operators;
  340.     }
  341.     public function addOperator(Operator $operator): static
  342.     {
  343.         if (!$this->operators->contains($operator)) {
  344.             $this->operators->add($operator);
  345.             $operator->addCompany($this);
  346.         }
  347.         return $this;
  348.     }
  349.     public function removeOperator(Operator $operator): static
  350.     {
  351.         if ($this->operators->removeElement($operator)) {
  352.             $operator->removeCompany($this);
  353.         }
  354.         return $this;
  355.     }
  356.     /**
  357.      * @return Collection<int, FaqQuestion>
  358.      */
  359.     public function getFaqQuestions(): Collection
  360.     {
  361.         return $this->faqQuestions;
  362.     }
  363.     public function addFaqQuestion(FaqQuestion $faqQuestion): static
  364.     {
  365.         if (!$this->faqQuestions->contains($faqQuestion)) {
  366.             $this->faqQuestions->add($faqQuestion);
  367.             $faqQuestion->setCompany($this);
  368.         }
  369.         return $this;
  370.     }
  371.     public function removeFaqQuestion(FaqQuestion $faqQuestion): static
  372.     {
  373.         if ($this->faqQuestions->removeElement($faqQuestion)) {
  374.             // set the owning side to null (unless already changed)
  375.             if ($faqQuestion->getCompany() === $this) {
  376.                 $faqQuestion->setCompany(null);
  377.             }
  378.         }
  379.         return $this;
  380.     }
  381.     public function getMailDescription(): ?string
  382.     {
  383.         return $this->mailDescription;
  384.     }
  385.     public function setMailDescription(?string $mailDescription): static
  386.     {
  387.         $this->mailDescription $mailDescription;
  388.         return $this;
  389.     }
  390.     /**
  391.      * @return Collection<int, Order>
  392.      */
  393.     public function getOrders(): Collection
  394.     {
  395.         return $this->orders;
  396.     }
  397.     public function addOrder(Order $order): static
  398.     {
  399.         if (!$this->orders->contains($order)) {
  400.             $this->orders->add($order);
  401.             $order->setCompany($this);
  402.         }
  403.         return $this;
  404.     }
  405.     public function removeOrder(Order $order): static
  406.     {
  407.         if ($this->orders->removeElement($order)) {
  408.             // set the owning side to null (unless already changed)
  409.             if ($order->getCompany() === $this) {
  410.                 $order->setCompany(null);
  411.             }
  412.         }
  413.         return $this;
  414.     }
  415.     public function getWayForPayAccount(): ?string
  416.     {
  417.         return $this->wayForPayAccount;
  418.     }
  419.     public function setWayForPayAccount(?string $wayForPayAccount): static
  420.     {
  421.         $this->wayForPayAccount $wayForPayAccount;
  422.         return $this;
  423.     }
  424.     public function getWayForPaySecret(): ?string
  425.     {
  426.         return $this->wayForPaySecret;
  427.     }
  428.     public function setWayForPaySecret(?string $wayForPaySecret): static
  429.     {
  430.         $this->wayForPaySecret $wayForPaySecret;
  431.         return $this;
  432.     }
  433.     public function getFopData(): ?string
  434.     {
  435.         return $this->fopData;
  436.     }
  437.     public function setFopData(?string $fopData): static
  438.     {
  439.         $this->fopData $fopData;
  440.         return $this;
  441.     }
  442.     /**
  443.      * @return Collection<int, Tariff>
  444.      */
  445.     public function getTariffs(): Collection
  446.     {
  447.         return $this->tariffs;
  448.     }
  449.     public function addTariff(Tariff $tariff): static
  450.     {
  451.         if (!$this->tariffs->contains($tariff)) {
  452.             $this->tariffs->add($tariff);
  453.             $tariff->addCompany($this);
  454.         }
  455.         return $this;
  456.     }
  457.     public function removeTariff(Tariff $tariff): static
  458.     {
  459.         if ($this->tariffs->removeElement($tariff)) {
  460.             $tariff->removeCompany($this);
  461.         }
  462.         return $this;
  463.     }
  464.     /**
  465.      * @return Collection<int, Page>
  466.      */
  467.     public function getPages(): Collection
  468.     {
  469.         return $this->pages;
  470.     }
  471.     public function addPage(Page $page): static
  472.     {
  473.         if (!$this->pages->contains($page)) {
  474.             $this->pages->add($page);
  475.             $page->addCompany($this);
  476.         }
  477.         return $this;
  478.     }
  479.     public function removePage(Page $page): static
  480.     {
  481.         if ($this->pages->removeElement($page)) {
  482.             $page->removeCompany($this);
  483.         }
  484.         return $this;
  485.     }
  486.     public function getRandomOperators(): ?bool
  487.     {
  488.         return $this->randomOperators;
  489.     }
  490.     public function setRandomOperators(bool $randomOperators): static
  491.     {
  492.         $this->randomOperators $randomOperators;
  493.         return $this;
  494.     }
  495.     public function getRandomOperatorsFrom(): ?\DateTimeInterface
  496.     {
  497.         return $this->randomOperatorsFrom;
  498.     }
  499.     public function setRandomOperatorsFrom(?\DateTimeInterface $randomOperatorsFrom): static
  500.     {
  501.         $this->randomOperatorsFrom $randomOperatorsFrom;
  502.         return $this;
  503.     }
  504.     public function getRandomOperatorsTo(): ?\DateTimeInterface
  505.     {
  506.         return $this->randomOperatorsTo;
  507.     }
  508.     public function setRandomOperatorsTo(?\DateTimeInterface $randomOperatorsTo): static
  509.     {
  510.         $this->randomOperatorsTo $randomOperatorsTo;
  511.         return $this;
  512.     }
  513.     public function getFop(): ?string
  514.     {
  515.         return $this->fop;
  516.     }
  517.     public function setFop(string $fop): static
  518.     {
  519.         $this->fop $fop;
  520.         return $this;
  521.     }
  522.     public function isTaxActive(): ?bool
  523.     {
  524.         return $this->taxActive;
  525.     }
  526.     public function setTaxActive(bool $taxActive): static
  527.     {
  528.         $this->taxActive $taxActive;
  529.         return $this;
  530.     }
  531.     public function isRandomOperators(): ?bool
  532.     {
  533.         return $this->randomOperators;
  534.     }
  535.     public function getTaxPercent(): int
  536.     {
  537.         return 20;
  538.     }
  539.     public function getPaymentDescription(): ?string
  540.     {
  541.         return $this->paymentDescription;
  542.     }
  543.     public function setPaymentDescription(?string $paymentDescription): static
  544.     {
  545.         $this->paymentDescription $paymentDescription;
  546.         return $this;
  547.     }
  548.     public function getPaymentType(): ?int
  549.     {
  550.         return $this->paymentType;
  551.     }
  552.     public function setPaymentType(int $paymentType): static
  553.     {
  554.         $this->paymentType $paymentType;
  555.         return $this;
  556.     }
  557.     public function getFonts(): ?string
  558.     {
  559.         return $this->fonts;
  560.     }
  561.     public function setFonts(?string $fonts): static
  562.     {
  563.         $this->fonts $fonts;
  564.         return $this;
  565.     }
  566.     public function getNotFilledButtonColor(): ?string
  567.     {
  568.         return $this->notFilledButtonColor;
  569.     }
  570.     public function setNotFilledButtonColor(?string $notFilledButtonColor): static
  571.     {
  572.         $this->notFilledButtonColor $notFilledButtonColor;
  573.         return $this;
  574.     }
  575.     public function getNotFilledButtonBorder(): ?string
  576.     {
  577.         return $this->notFilledButtonBorder;
  578.     }
  579.     public function setNotFilledButtonBorder(?string $notFilledButtonBorder): static
  580.     {
  581.         $this->notFilledButtonBorder $notFilledButtonBorder;
  582.         return $this;
  583.     }
  584.     public function getNotFilledButtonTextColor(): ?string
  585.     {
  586.         return $this->notFilledButtonTextColor;
  587.     }
  588.     public function setNotFilledButtonTextColor(?string $notFilledButtonTextColor): static
  589.     {
  590.         $this->notFilledButtonTextColor $notFilledButtonTextColor;
  591.         return $this;
  592.     }
  593.     public function getLinkTextColor(): ?string
  594.     {
  595.         return $this->linkTextColor;
  596.     }
  597.     public function setLinkTextColor(?string $linkTextColor): static
  598.     {
  599.         $this->linkTextColor $linkTextColor;
  600.         return $this;
  601.     }
  602.     public function getBackButtonColor(): ?string
  603.     {
  604.         return $this->backButtonColor;
  605.     }
  606.     public function setBackButtonColor(?string $backButtonColor): static
  607.     {
  608.         $this->backButtonColor $backButtonColor;
  609.         return $this;
  610.     }
  611.     public function getTimerTextColor(): ?string
  612.     {
  613.         return $this->timerTextColor;
  614.     }
  615.     public function setTimerTextColor(?string $timerTextColor): static
  616.     {
  617.         $this->timerTextColor $timerTextColor;
  618.         return $this;
  619.     }
  620.     public function getTariffBackgroundColor(): ?string
  621.     {
  622.         return $this->tariffBackgroundColor;
  623.     }
  624.     public function setTariffBackgroundColor(?string $tariffBackgroundColor): static
  625.     {
  626.         $this->tariffBackgroundColor $tariffBackgroundColor;
  627.         return $this;
  628.     }
  629.     public function getTariffTextColor(): ?string
  630.     {
  631.         return $this->tariffTextColor;
  632.     }
  633.     public function setTariffTextColor(?string $tariffTextColor): static
  634.     {
  635.         $this->tariffTextColor $tariffTextColor;
  636.         return $this;
  637.     }
  638.     public function getTariffTextAlign(): ?string
  639.     {
  640.         return $this->tariffTextAlign;
  641.     }
  642.     public function setTariffTextAlign(?string $tariffTextAlign): static
  643.     {
  644.         $this->tariffTextAlign $tariffTextAlign;
  645.         return $this;
  646.     }
  647.     public function getTitleTextColor(): ?string
  648.     {
  649.         return $this->titleTextColor;
  650.     }
  651.     public function setTitleTextColor(?string $titleTextColor): static
  652.     {
  653.         $this->titleTextColor $titleTextColor;
  654.         return $this;
  655.     }
  656.     public function getTitleTextAlign(): ?string
  657.     {
  658.         return $this->titleTextAlign;
  659.     }
  660.     public function setTitleTextAlign(?string $titleTextAlign): static
  661.     {
  662.         $this->titleTextAlign $titleTextAlign;
  663.         return $this;
  664.     }
  665.     public function getFontFamily(): ?string
  666.     {
  667.         return $this->fontFamily;
  668.     }
  669.     public function isPromoCodeVisible(): ?bool
  670.     {
  671.         return $this->promoCodeVisible;
  672.     }
  673.     public function setPromoCodeVisible(bool $promoCodeVisible): static
  674.     {
  675.         $this->promoCodeVisible $promoCodeVisible;
  676.         return $this;
  677.     }
  678.     public function setFontFamily(?string $fontFamily): static
  679.     {
  680.         $this->fontFamily $fontFamily;
  681.         return $this;
  682.     }
  683.     public function getNotFilledButtonBackgroundHide(): bool
  684.     {
  685.         return is_null($this->getNotFilledButtonColor());
  686.     }
  687.     public function setNotFilledButtonBackgroundHide($bool): static
  688.     {
  689.         if ($bool) {
  690.             $this->setNotFilledButtonColor(null);
  691.         }
  692.         return $this;
  693.     }
  694.     public function getTariffStyleType(): ?string
  695.     {
  696.         return $this->tariffStyleType;
  697.     }
  698.     public function setTariffStyleType(?string $tariffStyleType): static
  699.     {
  700.         $this->tariffStyleType $tariffStyleType;
  701.         return $this;
  702.     }
  703.     public function getSecondTitleTextColor(): ?string
  704.     {
  705.         return $this->secondTitleTextColor;
  706.     }
  707.     public function setSecondTitleTextColor(?string $secondTitleTextColor): static
  708.     {
  709.         $this->secondTitleTextColor $secondTitleTextColor;
  710.         return $this;
  711.     }
  712.     public function getSecondTitleTextAlign(): ?string
  713.     {
  714.         return $this->secondTitleTextAlign;
  715.     }
  716.     public function setSecondTitleTextAlign(?string $secondTitleTextAlign): static
  717.     {
  718.         $this->secondTitleTextAlign $secondTitleTextAlign;
  719.         return $this;
  720.     }
  721.     public function getDescriptionTextAlign(): ?string
  722.     {
  723.         return $this->descriptionTextAlign;
  724.     }
  725.     public function setDescriptionTextAlign(?string $descriptionTextAlign): static
  726.     {
  727.         $this->descriptionTextAlign $descriptionTextAlign;
  728.         return $this;
  729.     }
  730.     public function isCheckboxEnabled(): ?bool
  731.     {
  732.         return $this->checkboxEnabled;
  733.     }
  734.     public function getCheckboxEnabled(): ?bool
  735.     {
  736.         return $this->checkboxEnabled;
  737.     }
  738.     public function setCheckboxEnabled(bool $checkboxEnabled): static
  739.     {
  740.         $this->checkboxEnabled $checkboxEnabled;
  741.         return $this;
  742.     }
  743.     public function getCheckboxLogin(): ?string
  744.     {
  745.         return $this->checkboxLogin;
  746.     }
  747.     public function setCheckboxLogin(?string $checkboxLogin): static
  748.     {
  749.         $this->checkboxLogin $checkboxLogin;
  750.         return $this;
  751.     }
  752.     public function getCheckboxPass(): ?string
  753.     {
  754.         return $this->checkboxPass;
  755.     }
  756.     public function setCheckboxPass(?string $checkboxPass): static
  757.     {
  758.         $this->checkboxPass $checkboxPass;
  759.         return $this;
  760.     }
  761.     public function getCheckboxSecret(): ?string
  762.     {
  763.         return $this->checkboxSecret;
  764.     }
  765.     public function setCheckboxSecret(?string $checkboxSecret): static
  766.     {
  767.         $this->checkboxSecret $checkboxSecret;
  768.         return $this;
  769.     }
  770.     public function getOffert(): ?string
  771.     {
  772.         return $this->offert;
  773.     }
  774.     public function setOffert(?string $offert): static
  775.     {
  776.         $this->offert $offert;
  777.         return $this;
  778.     }
  779.     public function getPaymentDescriptionKyivstar(): ?string
  780.     {
  781.         return $this->paymentDescriptionKyivstar;
  782.     }
  783.     public function setPaymentDescriptionKyivstar(?string $paymentDescription): static
  784.     {
  785.         $this->paymentDescriptionKyivstar $paymentDescription;
  786.         return $this;
  787.     }
  788.     public function getSirTrevorContent(): ?string
  789.     {
  790.         return $this->sirTrevorContent;
  791.     }
  792.     public function setSirTrevorContent(?string $sirTrevorContent): static
  793.     {
  794.         $this->sirTrevorContent $sirTrevorContent;
  795.         return $this;
  796.     }
  797.     public function getFooterEmail(): ?string
  798.     {
  799.         return $this->footerEmail;
  800.     }
  801.     public function setFooterEmail(?string $footerEmail): static
  802.     {
  803.         $this->footerEmail $footerEmail;
  804.         return $this;
  805.     }
  806.     public function getFooterPhone(): ?string
  807.     {
  808.         return $this->footerPhone;
  809.     }
  810.     public function setFooterPhone(?string $footerPhone): static
  811.     {
  812.         $this->footerPhone $footerPhone;
  813.         return $this;
  814.     }
  815.     public function getDisplayVersion(): ?int
  816.     {
  817.         return $this->displayVersion;
  818.     }
  819.     public function setDisplayVersion(int $displayVersion): static
  820.     {
  821.         $this->displayVersion $displayVersion;
  822.         return $this;
  823.     }
  824.     public function getCustomScripts(): ?string
  825.     {
  826.         return $this->customScripts;
  827.     }
  828.     public function setCustomScripts(?string $customScripts): static
  829.     {
  830.         $this->customScripts $customScripts;
  831.         return $this;
  832.     }
  833.     public function isHeaderVisible(): ?bool
  834.     {
  835.         return $this->headerVisible;
  836.     }
  837.     public function setHeaderVisible(bool $headerVisible): static
  838.     {
  839.         $this->headerVisible $headerVisible;
  840.         return $this;
  841.     }
  842.     public function isFooterVisible(): ?bool
  843.     {
  844.         return $this->footerVisible;
  845.     }
  846.     public function setFooterVisible(bool $footerVisible): static
  847.     {
  848.         $this->footerVisible $footerVisible;
  849.         return $this;
  850.     }
  851.     public function setApiError(mixed $apiError): static
  852.     {
  853.         $this->apiError $apiError;
  854.         return $this;
  855.     }
  856.     public function getApiError()
  857.     {
  858.         return $this->apiError;
  859.     }
  860. }