vendor/shopware/core/Content/Sitemap/ScheduledTask/SitemapMessage.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Sitemap\ScheduledTask;
  3. use Shopware\Core\Framework\Log\Package;
  4. #[Package('sales-channel')]
  5. class SitemapMessage
  6. {
  7.     /**
  8.      * @var string
  9.      */
  10.     private $lastSalesChannelId;
  11.     /**
  12.      * @var string
  13.      */
  14.     private $lastLanguageId;
  15.     /**
  16.      * @var string
  17.      */
  18.     private $lastProvider;
  19.     /**
  20.      * @var int|null
  21.      */
  22.     private $nextOffset;
  23.     /**
  24.      * @var bool
  25.      */
  26.     private $finished;
  27.     /**
  28.      * @internal
  29.      */
  30.     public function __construct(?string $lastSalesChannelId, ?string $lastLanguageId, ?string $lastProvider, ?int $nextOffsetbool $finished)
  31.     {
  32.         $this->lastSalesChannelId $lastSalesChannelId;
  33.         $this->lastLanguageId $lastLanguageId;
  34.         $this->lastProvider $lastProvider;
  35.         $this->nextOffset $nextOffset;
  36.         $this->finished $finished;
  37.     }
  38.     public function getLastSalesChannelId(): ?string
  39.     {
  40.         return $this->lastSalesChannelId;
  41.     }
  42.     public function getLastLanguageId(): ?string
  43.     {
  44.         return $this->lastLanguageId;
  45.     }
  46.     public function getLastProvider(): ?string
  47.     {
  48.         return $this->lastProvider;
  49.     }
  50.     public function getNextOffset(): ?int
  51.     {
  52.         return $this->nextOffset;
  53.     }
  54.     public function isFinished(): bool
  55.     {
  56.         return $this->finished;
  57.     }
  58. }