vendor/shopware/core/Framework/Api/Context/SalesChannelApiSource.php line 8

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\Api\Context;
  3. use Shopware\Core\Framework\Log\Package;
  4. use Shopware\Core\Framework\Struct\JsonSerializableTrait;
  5. #[Package('core')]
  6. class SalesChannelApiSource implements ContextSource\JsonSerializable
  7. {
  8.     use JsonSerializableTrait;
  9.     public string $type 'sales-channel';
  10.     public function __construct(private readonly string $salesChannelId)
  11.     {
  12.     }
  13.     public function getSalesChannelId(): string
  14.     {
  15.         return $this->salesChannelId;
  16.     }
  17. }