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

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\Api\Context;
  3. use Shopware\Core\Framework\Log\Package;
  4. #[Package('core')]
  5. class SalesChannelApiSource implements ContextSource
  6. {
  7.     /**
  8.      * @var string
  9.      */
  10.     private $salesChannelId;
  11.     public function __construct(string $salesChannelId)
  12.     {
  13.         $this->salesChannelId $salesChannelId;
  14.     }
  15.     public function getSalesChannelId(): string
  16.     {
  17.         return $this->salesChannelId;
  18.     }
  19. }