<?php
namespace App\Entity\Gos\Uniqskills;
use App\Entity\Gos\Language;
use App\Entity\Gos\PortalSettings;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Repository\Uniqskills\FmCompanySettingsRepository")
* @ORM\HasLifecycleCallbacks()
*/
class FmCompanySettings
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id()
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToMany(targetEntity="App\Entity\Gos\Language", inversedBy="fmCompanySettings")
* @ORM\JoinTable()
*/
private $language;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Gos\PortalSettings", inversedBy="fmCompanySettings")
* @ORM\JoinColumn()
*/
private $portalSettings;
/**
* @ORM\Column(type="string", length=3, unique=true)
*/
private $ordTranPrefix;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isDefault;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $useSB;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $useRecaptchaInOrder;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $hideCatalog;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $hideNipInOrders;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $showOnlyRegulations;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sendOrderWelcomeMailOnly;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $facebookEventType;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $footerCopyright;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $contactFormRecipient;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $textContactThankYou;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $textFooterCooperatorHeaders;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $textAcceptanceRegulations;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $textVoucherRegulations;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $textConsentProcessingPersonalData;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
public function __construct()
{
$this->language = new ArrayCollection();
}
/** @ORM\PrePersist() */
public function prePersist()
{
$this->createdAt = new \DateTime();
}
/** @ORM\PreUpdate() */
public function preUpdate()
{
$this->updatedAt = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getOrdTranPrefix(): ?string
{
return $this->ordTranPrefix;
}
public function setOrdTranPrefix(string $ordTranPrefix): self
{
$this->ordTranPrefix = $ordTranPrefix;
return $this;
}
public function getIsDefault(): ?bool
{
return $this->isDefault;
}
public function setIsDefault(?bool $isDefault): self
{
$this->isDefault = $isDefault;
return $this;
}
public function getUseSB(): ?bool
{
return $this->useSB;
}
public function setUseSB(?bool $useSB): self
{
$this->useSB = $useSB;
return $this;
}
public function getUseRecaptchaInOrder(): ?bool
{
return $this->useRecaptchaInOrder;
}
public function setUseRecaptchaInOrder(?bool $useRecaptchaInOrder): self
{
$this->useRecaptchaInOrder = $useRecaptchaInOrder;
return $this;
}
public function getHideCatalog(): ?bool
{
return $this->hideCatalog;
}
public function setHideCatalog(?bool $hideCatalog): self
{
$this->hideCatalog = $hideCatalog;
return $this;
}
public function getHideNipInOrders(): ?bool
{
return $this->hideNipInOrders;
}
public function setHideNipInOrders(?bool $hideNipInOrders): self
{
$this->hideNipInOrders = $hideNipInOrders;
return $this;
}
public function getShowOnlyRegulations(): ?bool
{
return $this->showOnlyRegulations;
}
public function setShowOnlyRegulations(?bool $showOnlyRegulations): self
{
$this->showOnlyRegulations = $showOnlyRegulations;
return $this;
}
public function getSendOrderWelcomeMailOnly(): ?bool
{
return $this->sendOrderWelcomeMailOnly;
}
public function setSendOrderWelcomeMailOnly(?bool $sendOrderWelcomeMailOnly): self
{
$this->sendOrderWelcomeMailOnly = $sendOrderWelcomeMailOnly;
return $this;
}
public function getFacebookEventType(): ?int
{
return $this->facebookEventType;
}
public function setFacebookEventType(?int $facebookEventType): self
{
$this->facebookEventType = $facebookEventType;
return $this;
}
public function getFooterCopyright(): ?string
{
return $this->footerCopyright;
}
public function setFooterCopyright(?string $footerCopyright): self
{
$this->footerCopyright = $footerCopyright;
return $this;
}
public function getContactFormRecipient()
{
return json_decode($this->contactFormRecipient, true);
}
public function setContactFormRecipient($contactFormRecipient): self
{
$this->contactFormRecipient = $contactFormRecipient;
return $this;
}
public function getTextAcceptanceRegulations()
{
return json_decode($this->textAcceptanceRegulations, true);
}
public function setTextAcceptanceRegulations($textAcceptanceRegulations): self
{
$this->textAcceptanceRegulations = $textAcceptanceRegulations;
return $this;
}
public function getTextFooterCooperatorHeaders()
{
return json_decode($this->textFooterCooperatorHeaders, true);
}
public function setTextFooterCooperatorHeaders($textFooterCooperatorHeaders): self
{
$this->textFooterCooperatorHeaders = $textFooterCooperatorHeaders;
return $this;
}
public function getTextVoucherRegulations()
{
return json_decode($this->textVoucherRegulations, true);
}
public function setTextVoucherRegulations($textVoucherRegulations): self
{
$this->textVoucherRegulations = $textVoucherRegulations;
return $this;
}
public function getTextConsentProcessingPersonalData()
{
return json_decode($this->textConsentProcessingPersonalData, true);
}
public function setTextConsentProcessingPersonalData($textConsentProcessingPersonalData): self
{
$this->textConsentProcessingPersonalData = $textConsentProcessingPersonalData;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* @return Collection|Language[]
*/
public function getLanguage(): Collection
{
return $this->language;
}
public function addLanguage(Language $language): self
{
if (!$this->language->contains($language)) {
$this->language[] = $language;
}
return $this;
}
public function removeLanguage(Language $language): self
{
if ($this->language->contains($language)) {
$this->language->removeElement($language);
}
return $this;
}
public function getLanguageCodes()
{
$return = array();
foreach ($this->language as $language)
{
$return[$language->getCode()] = $language->getCode();
}
return $return;
}
public function getPortalSettings(): ?PortalSettings
{
return $this->portalSettings;
}
public function setPortalSettings(?PortalSettings $portalSettings): self
{
$this->portalSettings = $portalSettings;
return $this;
}
public function getTextContactThankYou()
{
return json_decode($this->textContactThankYou, true);
}
public function setTextContactThankYou($textContactThankYou): self
{
$this->textContactThankYou = $textContactThankYou;
return $this;
}
}