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. /**
  4.  * @package core
  5.  */
  6. class SalesChannelApiSource implements ContextSource
  7. {
  8.     /**
  9.      * @var string
  10.      */
  11.     private $salesChannelId;
  12.     public function __construct(string $salesChannelId)
  13.     {
  14.         $this->salesChannelId $salesChannelId;
  15.     }
  16.     public function getSalesChannelId(): string
  17.     {
  18.         return $this->salesChannelId;
  19.     }
  20. }