vendor/shopware/core/Content/Mail/Service/MailAttachmentsConfig.php line 14

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Mail\Service;
  3. use Shopware\Core\Content\MailTemplate\MailTemplateEntity;
  4. use Shopware\Core\Content\MailTemplate\Subscriber\MailSendSubscriberConfig;
  5. use Shopware\Core\Framework\Context;
  6. use Shopware\Core\Framework\Log\Package;
  7. /**
  8.  * @internal
  9.  */
  10. #[Package('system-settings')]
  11. class MailAttachmentsConfig
  12. {
  13.     private Context $context;
  14.     private MailTemplateEntity $mailTemplate;
  15.     private MailSendSubscriberConfig $extension;
  16.     /**
  17.      * @var mixed[]
  18.      */
  19.     private array $eventConfig;
  20.     private ?string $orderId;
  21.     /**
  22.      * @param mixed[] $eventConfig
  23.      */
  24.     public function __construct(
  25.         Context $context,
  26.         MailTemplateEntity $mailTemplate,
  27.         MailSendSubscriberConfig $extension,
  28.         array $eventConfig,
  29.         ?string $orderId
  30.     ) {
  31.         $this->context $context;
  32.         $this->mailTemplate $mailTemplate;
  33.         $this->extension $extension;
  34.         $this->eventConfig $eventConfig;
  35.         $this->orderId $orderId;
  36.     }
  37.     public function getContext(): Context
  38.     {
  39.         return $this->context;
  40.     }
  41.     public function setContext(Context $context): void
  42.     {
  43.         $this->context $context;
  44.     }
  45.     public function getMailTemplate(): MailTemplateEntity
  46.     {
  47.         return $this->mailTemplate;
  48.     }
  49.     public function setMailTemplate(MailTemplateEntity $mailTemplate): void
  50.     {
  51.         $this->mailTemplate $mailTemplate;
  52.     }
  53.     public function getExtension(): MailSendSubscriberConfig
  54.     {
  55.         return $this->extension;
  56.     }
  57.     public function setExtension(MailSendSubscriberConfig $extension): void
  58.     {
  59.         $this->extension $extension;
  60.     }
  61.     /**
  62.      * @return mixed[]
  63.      */
  64.     public function getEventConfig(): array
  65.     {
  66.         return $this->eventConfig;
  67.     }
  68.     /**
  69.      * @param mixed[] $eventConfig
  70.      */
  71.     public function setEventConfig(array $eventConfig): void
  72.     {
  73.         $this->eventConfig $eventConfig;
  74.     }
  75.     public function getOrderId(): ?string
  76.     {
  77.         return $this->orderId;
  78.     }
  79.     public function setOrderId(?string $orderId): void
  80.     {
  81.         $this->orderId $orderId;
  82.     }
  83. }