vendor/shopware/core/Framework/Api/Context/SalesChannelApiSource.php line 8
<?php declare(strict_types=1);
namespace Shopware\Core\Framework\Api\Context;
use Shopware\Core\Framework\Log\Package;
use Shopware\Core\Framework\Struct\JsonSerializableTrait;
#[Package('core')]
class SalesChannelApiSource implements ContextSource, \JsonSerializable
{
use JsonSerializableTrait;
public string $type = 'sales-channel';
public function __construct(private readonly string $salesChannelId)
{
}
public function getSalesChannelId(): string
{
return $this->salesChannelId;
}
}