vendor/shopware/core/Framework/Webhook/Message/WebhookEventMessage.php line 5

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\Webhook\Message;
  3. class WebhookEventMessage
  4. {
  5.     private array $payload;
  6.     private ?string $appId;
  7.     private string $webhookId;
  8.     private string $url;
  9.     private string $shopwareVersion;
  10.     private string $webhookEventId;
  11.     private ?string $secret;
  12.     /**
  13.      * @depretacted tag:v6.5.0 - This will be required in the future
  14.      **/
  15.     private ?string $languageId;
  16.     /**
  17.      * @depretacted tag:v6.5.0 - This will be required in the future
  18.      **/
  19.     private ?string $userLocale;
  20.     /**
  21.      * @internal
  22.      * @depretacted tag:v6.5.0 - Parameters $languageId and $userLocale will be required
  23.      **/
  24.     public function __construct(
  25.         string $webhookEventId,
  26.         array $payload,
  27.         ?string $appId,
  28.         string $webhookId,
  29.         string $shopwareVersion,
  30.         string $url,
  31.         ?string $secret null,
  32.         ?string $languageId null,
  33.         ?string $userLocale null
  34.     ) {
  35.         $this->webhookEventId $webhookEventId;
  36.         $this->payload $payload;
  37.         $this->appId $appId;
  38.         $this->webhookId $webhookId;
  39.         $this->shopwareVersion $shopwareVersion;
  40.         $this->url $url;
  41.         $this->secret $secret;
  42.         $this->languageId $languageId;
  43.         $this->userLocale $userLocale;
  44.     }
  45.     public function getPayload(): array
  46.     {
  47.         return $this->payload;
  48.     }
  49.     public function getAppId(): ?string
  50.     {
  51.         return $this->appId;
  52.     }
  53.     public function getWebhookId(): string
  54.     {
  55.         return $this->webhookId;
  56.     }
  57.     public function getShopwareVersion(): string
  58.     {
  59.         return $this->shopwareVersion;
  60.     }
  61.     public function getUrl(): string
  62.     {
  63.         return $this->url;
  64.     }
  65.     public function getWebhookEventId(): string
  66.     {
  67.         return $this->webhookEventId;
  68.     }
  69.     public function getSecret(): ?string
  70.     {
  71.         return $this->secret;
  72.     }
  73.     public function getLanguageId(): ?string
  74.     {
  75.         return $this->languageId;
  76.     }
  77.     public function getUserLocale(): ?string
  78.     {
  79.         return $this->userLocale;
  80.     }
  81. }