src/Entity/NotificationConfig.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Annotation\SiteAware;
  4. use App\Entity\Interfaces\SiteInterface;
  5. use App\Entity\Traits\SiteTrait;
  6. use App\Repository\NotificationConfigRepository;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. /**
  10.  * @ORM\Table(name="vulco_notification_config", indexes={@ORM\Index(name="notification_config_site_idx", columns={"site"})})
  11.  * @ORM\Entity(repositoryClass=NotificationConfigRepository::class)
  12.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  13.  * @SiteAware(siteFieldName="site")
  14.  */
  15. class NotificationConfig extends AbstractBase implements SiteInterface
  16. {
  17.     use SiteTrait;
  18.     /**
  19.      * @ORM\Column(type="text", length=10000)
  20.      */
  21.     private ?string $contactFormInformation;
  22.     /**
  23.      * @ORM\Column(type="text", length=10000)
  24.      */
  25.     private ?string $contactFormSuggestions;
  26.     /**
  27.      * @ORM\Column(type="text", length=10000)
  28.      */
  29.     private ?string $contactFormSuppliers;
  30.     /**
  31.      * @ORM\Column(type="text", length=10000)
  32.      */
  33.     private ?string $franchiseForm;
  34.     /**
  35.      * @ORM\Column(type="text", length=10000)
  36.      */
  37.     private ?string $jobBoardForm;
  38.     /**
  39.      * @ORM\Column(type="text", length=10000)
  40.      */
  41.     private ?string $shopNotifications;
  42.     /**
  43.      * @ORM\Column(type="text", length=10000)
  44.      */
  45.     private ?string $shopToName;
  46.     /**
  47.      * @ORM\Column(type="text", length=10000)
  48.      */
  49.     private ?string $giftShopNotificationEmails;
  50.     /**
  51.      * @ORM\Column(type="text", length=10000)
  52.      */
  53.     private ?string $localPromotionNotificationEmails;
  54.     /**
  55.      * @ORM\Column(type="text", length=10000)
  56.      */
  57.     private ?string $maintenancePlansNotificationEmails;
  58.     /**
  59.      * @ORM\Column(type="text", length=10000)
  60.      */
  61.     private ?string $garageDataNotificationEmails;
  62.     public function getContactFormInformation(): ?string
  63.     {
  64.         return $this->contactFormInformation;
  65.     }
  66.     public function setContactFormInformation(?string $contactFormInformation): self
  67.     {
  68.         $this->contactFormInformation $contactFormInformation;
  69.         return $this;
  70.     }
  71.     public function getContactFormSuggestions(): ?string
  72.     {
  73.         return $this->contactFormSuggestions;
  74.     }
  75.     public function setContactFormSuggestions(?string $contactFormSuggestions): self
  76.     {
  77.         $this->contactFormSuggestions $contactFormSuggestions;
  78.         return $this;
  79.     }
  80.     public function getContactFormSuppliers(): ?string
  81.     {
  82.         return $this->contactFormSuppliers;
  83.     }
  84.     public function setContactFormSuppliers(?string $contactFormSuppliers): self
  85.     {
  86.         $this->contactFormSuppliers $contactFormSuppliers;
  87.         return $this;
  88.     }
  89.     public function getFranchiseForm(): ?string
  90.     {
  91.         return $this->franchiseForm;
  92.     }
  93.     public function setFranchiseForm(?string $franchiseForm): self
  94.     {
  95.         $this->franchiseForm $franchiseForm;
  96.         return $this;
  97.     }
  98.     public function getJobBoardForm(): ?string
  99.     {
  100.         return $this->jobBoardForm;
  101.     }
  102.     public function setJobBoardForm(?string $jobBoardForm): self
  103.     {
  104.         $this->jobBoardForm $jobBoardForm;
  105.         return $this;
  106.     }
  107.     public function getShopNotifications(): ?string
  108.     {
  109.         return $this->shopNotifications;
  110.     }
  111.     public function setShopNotifications(?string $shopNotifications): self
  112.     {
  113.         $this->shopNotifications $shopNotifications;
  114.         return $this;
  115.     }
  116.     public function getShopToName(): ?string
  117.     {
  118.         return $this->shopToName;
  119.     }
  120.     public function setShopToName(?string $shopToName): self
  121.     {
  122.         $this->shopToName $shopToName;
  123.         return $this;
  124.     }
  125.     public function getGiftShopNotificationEmails(): ?string
  126.     {
  127.         return $this->giftShopNotificationEmails;
  128.     }
  129.     public function getGiftShopNotificationEmailsArray(): array
  130.     {
  131.         return array_map('trim', (explode(','$this->getGiftShopNotificationEmails())));
  132.     }
  133.     public function setGiftShopNotificationEmails(?string $giftShopNotificationEmails): self
  134.     {
  135.         $this->giftShopNotificationEmails $giftShopNotificationEmails;
  136.         return $this;
  137.     }
  138.     public function getLocalPromotionNotificationEmails(): ?string
  139.     {
  140.         return $this->localPromotionNotificationEmails;
  141.     }
  142.     public function getLocalPromotionNotificationEmailsArray(): array
  143.     {
  144.         return array_map('trim', (explode(','$this->getLocalPromotionNotificationEmails())));
  145.     }
  146.     public function setLocalPromotionNotificationEmails(?string $localPromotionNotificationEmails): self
  147.     {
  148.         $this->localPromotionNotificationEmails $localPromotionNotificationEmails;
  149.         return $this;
  150.     }
  151.     public function getMaintenancePlansNotificationEmails(): ?string
  152.     {
  153.         return $this->maintenancePlansNotificationEmails;
  154.     }
  155.     public function getMaintenancePlansNotificationEmailsArray(): array
  156.     {
  157.         return array_map('trim', (explode(','$this->getMaintenancePlansNotificationEmails())));
  158.     }
  159.     public function setMaintenancePlansNotificationEmails(?string $maintenancePlansNotificationEmails): self
  160.     {
  161.         $this->maintenancePlansNotificationEmails $maintenancePlansNotificationEmails;
  162.         return $this;
  163.     }
  164.     public function getGarageDataNotificationEmails(): ?string
  165.     {
  166.         return $this->garageDataNotificationEmails;
  167.     }
  168.     public function getGarageDataNotificationEmailsArray(): array
  169.     {
  170.         return array_map('trim', (explode(','$this->getGarageDataNotificationEmails())));
  171.     }
  172.     public function setGarageDataNotificationEmails(?string $garageDataNotificationEmails): self
  173.     {
  174.         $this->garageDataNotificationEmails $garageDataNotificationEmails;
  175.         return $this;
  176.     }
  177.     public function __toString(): string
  178.     {
  179.         return $this->id $this->getContactFormInformation() : MiniAbstractBase::DEFAULT_EMPTY_STRING;
  180.     }
  181. }