src/Core/Content/Sitemap/ScheduledTask/SitemapMessage.php line 9

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Sitemap\ScheduledTask;
  3. use Shopware\Core\Framework\Log\Package;
  4. use Shopware\Core\Framework\MessageQueue\AsyncMessageInterface;
  5. #[Package('sales-channel')]
  6. class SitemapMessage implements AsyncMessageInterface
  7. {
  8.     /**
  9.      * @internal
  10.      */
  11.     public function __construct(private readonly ?string $lastSalesChannelId, private readonly ?string $lastLanguageId, private readonly ?string $lastProvider, private readonly ?int $nextOffset, private readonly bool $finished)
  12.     {
  13.     }
  14.     public function getLastSalesChannelId(): ?string
  15.     {
  16.         return $this->lastSalesChannelId;
  17.     }
  18.     public function getLastLanguageId(): ?string
  19.     {
  20.         return $this->lastLanguageId;
  21.     }
  22.     public function getLastProvider(): ?string
  23.     {
  24.         return $this->lastProvider;
  25.     }
  26.     public function getNextOffset(): ?int
  27.     {
  28.         return $this->nextOffset;
  29.     }
  30.     public function isFinished(): bool
  31.     {
  32.         return $this->finished;
  33.     }
  34. }