src/Entity/Gos/Uniqskills/FmCompanySettings.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\Uniqskills;
  3. use App\Entity\Gos\Language;
  4. use App\Entity\Gos\PortalSettings;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Table()
  10.  * @ORM\Entity(repositoryClass="App\Repository\Uniqskills\FmCompanySettingsRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class FmCompanySettings
  14. {
  15.     /**
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id()
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\ManyToMany(targetEntity="App\Entity\Gos\Language", inversedBy="fmCompanySettings")
  23.      * @ORM\JoinTable()
  24.      */
  25.     private $language;
  26.     /**
  27.      * @ORM\OneToOne(targetEntity="App\Entity\Gos\PortalSettings", inversedBy="fmCompanySettings")
  28.      * @ORM\JoinColumn()
  29.      */
  30.     private $portalSettings;
  31.     /**
  32.      * @ORM\Column(type="string", length=3, unique=true)
  33.      */
  34.     private $ordTranPrefix;
  35.     /**
  36.      * @ORM\Column(type="boolean", nullable=true)
  37.      */
  38.     private $isDefault;
  39.     /**
  40.      * @ORM\Column(type="boolean", nullable=true)
  41.      */
  42.     private $useSB;
  43.     /**
  44.      * @ORM\Column(type="boolean", nullable=true)
  45.      */
  46.     private $useRecaptchaInOrder;
  47.     /**
  48.      * @ORM\Column(type="boolean", nullable=true)
  49.      */
  50.     private $hideCatalog;
  51.     /**
  52.      * @ORM\Column(type="boolean", nullable=true)
  53.      */
  54.     private $hideNipInOrders;
  55.     /**
  56.      * @ORM\Column(type="boolean", nullable=true)
  57.      */
  58.     private $showOnlyRegulations;
  59.     /**
  60.      * @ORM\Column(type="boolean", nullable=true)
  61.      */
  62.     private $sendOrderWelcomeMailOnly;
  63.     /**
  64.      * @ORM\Column(type="integer", nullable=true)
  65.      */
  66.     private $facebookEventType;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      */
  70.     private $footerCopyright;
  71.     /**
  72.      * @ORM\Column(type="text", nullable=true)
  73.      */
  74.     private $contactFormRecipient;
  75.     /**
  76.      * @ORM\Column(type="text", nullable=true)
  77.      */
  78.     private $textContactThankYou;
  79.     /**
  80.      * @ORM\Column(type="text", nullable=true)
  81.      */
  82.     private $textFooterCooperatorHeaders;
  83.     /**
  84.      * @ORM\Column(type="text", nullable=true)
  85.      */
  86.     private $textAcceptanceRegulations;
  87.     /**
  88.      * @ORM\Column(type="text", nullable=true)
  89.      */
  90.     private $textVoucherRegulations;
  91.     /**
  92.      * @ORM\Column(type="text", nullable=true)
  93.      */
  94.     private $textConsentProcessingPersonalData;
  95.     /**
  96.      * @ORM\Column(type="datetime")
  97.      */
  98.     private $createdAt;
  99.     /**
  100.      * @ORM\Column(type="datetime", nullable=true)
  101.      */
  102.     private $updatedAt;
  103.     public function __construct()
  104.     {
  105.         $this->language = new ArrayCollection();
  106.     }
  107.     /** @ORM\PrePersist() */
  108.     public function prePersist()
  109.     {
  110.         $this->createdAt = new \DateTime();
  111.     }
  112.     /** @ORM\PreUpdate() */
  113.     public function preUpdate()
  114.     {
  115.         $this->updatedAt = new \DateTime();
  116.     }
  117.     public function getId(): ?int
  118.     {
  119.         return $this->id;
  120.     }
  121.     public function getOrdTranPrefix(): ?string
  122.     {
  123.         return $this->ordTranPrefix;
  124.     }
  125.     public function setOrdTranPrefix(string $ordTranPrefix): self
  126.     {
  127.         $this->ordTranPrefix $ordTranPrefix;
  128.         return $this;
  129.     }
  130.     public function getIsDefault(): ?bool
  131.     {
  132.         return $this->isDefault;
  133.     }
  134.     public function setIsDefault(?bool $isDefault): self
  135.     {
  136.         $this->isDefault $isDefault;
  137.         return $this;
  138.     }
  139.     public function getUseSB(): ?bool
  140.     {
  141.         return $this->useSB;
  142.     }
  143.     public function setUseSB(?bool $useSB): self
  144.     {
  145.         $this->useSB $useSB;
  146.         return $this;
  147.     }
  148.     public function getUseRecaptchaInOrder(): ?bool
  149.     {
  150.         return $this->useRecaptchaInOrder;
  151.     }
  152.     public function setUseRecaptchaInOrder(?bool $useRecaptchaInOrder): self
  153.     {
  154.         $this->useRecaptchaInOrder $useRecaptchaInOrder;
  155.         return $this;
  156.     }
  157.     public function getHideCatalog(): ?bool
  158.     {
  159.         return $this->hideCatalog;
  160.     }
  161.     public function setHideCatalog(?bool $hideCatalog): self
  162.     {
  163.         $this->hideCatalog $hideCatalog;
  164.         return $this;
  165.     }
  166.     public function getHideNipInOrders(): ?bool
  167.     {
  168.         return $this->hideNipInOrders;
  169.     }
  170.     public function setHideNipInOrders(?bool $hideNipInOrders): self
  171.     {
  172.         $this->hideNipInOrders $hideNipInOrders;
  173.         return $this;
  174.     }
  175.     public function getShowOnlyRegulations(): ?bool
  176.     {
  177.         return $this->showOnlyRegulations;
  178.     }
  179.     public function setShowOnlyRegulations(?bool $showOnlyRegulations): self
  180.     {
  181.         $this->showOnlyRegulations $showOnlyRegulations;
  182.         return $this;
  183.     }
  184.     public function getSendOrderWelcomeMailOnly(): ?bool
  185.     {
  186.         return $this->sendOrderWelcomeMailOnly;
  187.     }
  188.     public function setSendOrderWelcomeMailOnly(?bool $sendOrderWelcomeMailOnly): self
  189.     {
  190.         $this->sendOrderWelcomeMailOnly $sendOrderWelcomeMailOnly;
  191.         return $this;
  192.     }
  193.     public function getFacebookEventType(): ?int
  194.     {
  195.         return $this->facebookEventType;
  196.     }
  197.     public function setFacebookEventType(?int $facebookEventType): self
  198.     {
  199.         $this->facebookEventType $facebookEventType;
  200.         return $this;
  201.     }
  202.     public function getFooterCopyright(): ?string
  203.     {
  204.         return $this->footerCopyright;
  205.     }
  206.     public function setFooterCopyright(?string $footerCopyright): self
  207.     {
  208.         $this->footerCopyright $footerCopyright;
  209.         return $this;
  210.     }
  211.     public function getContactFormRecipient()
  212.     {
  213.         return json_decode($this->contactFormRecipienttrue);
  214.     }
  215.     public function setContactFormRecipient($contactFormRecipient): self
  216.     {
  217.         $this->contactFormRecipient $contactFormRecipient;
  218.         return $this;
  219.     }
  220.     public function getTextAcceptanceRegulations()
  221.     {
  222.         return json_decode($this->textAcceptanceRegulationstrue);
  223.     }
  224.     public function setTextAcceptanceRegulations($textAcceptanceRegulations): self
  225.     {
  226.         $this->textAcceptanceRegulations $textAcceptanceRegulations;
  227.         return $this;
  228.     }
  229.     public function getTextFooterCooperatorHeaders()
  230.     {
  231.         return json_decode($this->textFooterCooperatorHeaderstrue);
  232.     }
  233.     public function setTextFooterCooperatorHeaders($textFooterCooperatorHeaders): self
  234.     {
  235.         $this->textFooterCooperatorHeaders $textFooterCooperatorHeaders;
  236.         return $this;
  237.     }
  238.     public function getTextVoucherRegulations()
  239.     {
  240.         return json_decode($this->textVoucherRegulationstrue);
  241.     }
  242.     public function setTextVoucherRegulations($textVoucherRegulations): self
  243.     {
  244.         $this->textVoucherRegulations $textVoucherRegulations;
  245.         return $this;
  246.     }
  247.     public function getTextConsentProcessingPersonalData()
  248.     {
  249.         return json_decode($this->textConsentProcessingPersonalDatatrue);
  250.     }
  251.     public function setTextConsentProcessingPersonalData($textConsentProcessingPersonalData): self
  252.     {
  253.         $this->textConsentProcessingPersonalData $textConsentProcessingPersonalData;
  254.         return $this;
  255.     }
  256.     public function getCreatedAt(): ?\DateTimeInterface
  257.     {
  258.         return $this->createdAt;
  259.     }
  260.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  261.     {
  262.         $this->createdAt $createdAt;
  263.         return $this;
  264.     }
  265.     public function getUpdatedAt(): ?\DateTimeInterface
  266.     {
  267.         return $this->updatedAt;
  268.     }
  269.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  270.     {
  271.         $this->updatedAt $updatedAt;
  272.         return $this;
  273.     }
  274.     /**
  275.      * @return Collection|Language[]
  276.      */
  277.     public function getLanguage(): Collection
  278.     {
  279.         return $this->language;
  280.     }
  281.     public function addLanguage(Language $language): self
  282.     {
  283.         if (!$this->language->contains($language)) {
  284.             $this->language[] = $language;
  285.         }
  286.         return $this;
  287.     }
  288.     public function removeLanguage(Language $language): self
  289.     {
  290.         if ($this->language->contains($language)) {
  291.             $this->language->removeElement($language);
  292.         }
  293.         return $this;
  294.     }
  295.     public function getLanguageCodes()
  296.     {
  297.         $return = array();
  298.         foreach ($this->language as $language)
  299.         {
  300.             $return[$language->getCode()] = $language->getCode();
  301.         }
  302.         return $return;
  303.     }
  304.     public function getPortalSettings(): ?PortalSettings
  305.     {
  306.         return $this->portalSettings;
  307.     }
  308.     public function setPortalSettings(?PortalSettings $portalSettings): self
  309.     {
  310.         $this->portalSettings $portalSettings;
  311.         return $this;
  312.     }
  313.     public function getTextContactThankYou()
  314.     {
  315.         return json_decode($this->textContactThankYoutrue);
  316.     }
  317.     public function setTextContactThankYou($textContactThankYou): self
  318.     {
  319.         $this->textContactThankYou $textContactThankYou;
  320.         return $this;
  321.     }
  322. }