* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\Product\Supplier\Query; use PrestaShop\PrestaShop\Core\Domain\Product\ValueObject\ProductId; /** * Provides the list of suppliers associated to a product, and its default supllier. */ class GetAssociatedSuppliers { /** * @var ProductId */ private $productId; /** * @param int $productId */ public function __construct(int $productId) { $this->productId = new ProductId($productId); } /** * @return ProductId */ public function getProductId(): ProductId { return $this->productId; } }