<?php
namespace App\Entity;
use App\Annotation\SiteAware;
use App\Entity\Interfaces\SiteInterface;
use App\Entity\Traits\SiteTrait;
use App\Repository\NotificationConfigRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Table(name="vulco_notification_config", indexes={@ORM\Index(name="notification_config_site_idx", columns={"site"})})
* @ORM\Entity(repositoryClass=NotificationConfigRepository::class)
* @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
* @SiteAware(siteFieldName="site")
*/
class NotificationConfig extends AbstractBase implements SiteInterface
{
use SiteTrait;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $contactFormInformation;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $contactFormSuggestions;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $contactFormSuppliers;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $franchiseForm;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $jobBoardForm;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $shopNotifications;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $shopToName;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $giftShopNotificationEmails;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $localPromotionNotificationEmails;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $maintenancePlansNotificationEmails;
/**
* @ORM\Column(type="text", length=10000)
*/
private ?string $garageDataNotificationEmails;
public function getContactFormInformation(): ?string
{
return $this->contactFormInformation;
}
public function setContactFormInformation(?string $contactFormInformation): self
{
$this->contactFormInformation = $contactFormInformation;
return $this;
}
public function getContactFormSuggestions(): ?string
{
return $this->contactFormSuggestions;
}
public function setContactFormSuggestions(?string $contactFormSuggestions): self
{
$this->contactFormSuggestions = $contactFormSuggestions;
return $this;
}
public function getContactFormSuppliers(): ?string
{
return $this->contactFormSuppliers;
}
public function setContactFormSuppliers(?string $contactFormSuppliers): self
{
$this->contactFormSuppliers = $contactFormSuppliers;
return $this;
}
public function getFranchiseForm(): ?string
{
return $this->franchiseForm;
}
public function setFranchiseForm(?string $franchiseForm): self
{
$this->franchiseForm = $franchiseForm;
return $this;
}
public function getJobBoardForm(): ?string
{
return $this->jobBoardForm;
}
public function setJobBoardForm(?string $jobBoardForm): self
{
$this->jobBoardForm = $jobBoardForm;
return $this;
}
public function getShopNotifications(): ?string
{
return $this->shopNotifications;
}
public function setShopNotifications(?string $shopNotifications): self
{
$this->shopNotifications = $shopNotifications;
return $this;
}
public function getShopToName(): ?string
{
return $this->shopToName;
}
public function setShopToName(?string $shopToName): self
{
$this->shopToName = $shopToName;
return $this;
}
public function getGiftShopNotificationEmails(): ?string
{
return $this->giftShopNotificationEmails;
}
public function getGiftShopNotificationEmailsArray(): array
{
return array_map('trim', (explode(',', $this->getGiftShopNotificationEmails())));
}
public function setGiftShopNotificationEmails(?string $giftShopNotificationEmails): self
{
$this->giftShopNotificationEmails = $giftShopNotificationEmails;
return $this;
}
public function getLocalPromotionNotificationEmails(): ?string
{
return $this->localPromotionNotificationEmails;
}
public function getLocalPromotionNotificationEmailsArray(): array
{
return array_map('trim', (explode(',', $this->getLocalPromotionNotificationEmails())));
}
public function setLocalPromotionNotificationEmails(?string $localPromotionNotificationEmails): self
{
$this->localPromotionNotificationEmails = $localPromotionNotificationEmails;
return $this;
}
public function getMaintenancePlansNotificationEmails(): ?string
{
return $this->maintenancePlansNotificationEmails;
}
public function getMaintenancePlansNotificationEmailsArray(): array
{
return array_map('trim', (explode(',', $this->getMaintenancePlansNotificationEmails())));
}
public function setMaintenancePlansNotificationEmails(?string $maintenancePlansNotificationEmails): self
{
$this->maintenancePlansNotificationEmails = $maintenancePlansNotificationEmails;
return $this;
}
public function getGarageDataNotificationEmails(): ?string
{
return $this->garageDataNotificationEmails;
}
public function getGarageDataNotificationEmailsArray(): array
{
return array_map('trim', (explode(',', $this->getGarageDataNotificationEmails())));
}
public function setGarageDataNotificationEmails(?string $garageDataNotificationEmails): self
{
$this->garageDataNotificationEmails = $garageDataNotificationEmails;
return $this;
}
public function __toString(): string
{
return $this->id ? $this->getContactFormInformation() : MiniAbstractBase::DEFAULT_EMPTY_STRING;
}
}