| Current Path : /home/rtorresani/www/vendor/magento/module-quote/Model/Cart/ |
| Current File : //home/rtorresani/www/vendor/magento/module-quote/Model/Cart/ProductReaderInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Quote\Model\Cart;
use Magento\Catalog\Api\Data\ProductInterface;
/**
* Cart layer product loader.
*/
interface ProductReaderInterface
{
/**
* Load products by skus for specified store.
*
* @param string[] $skus
* @param int $storeId
* @return void
*/
public function loadProducts(array $skus, int $storeId);
/**
* Get product by specified sku.
*
* @param string $sku
* @return ProductInterface
*/
public function getProductBySku(string $sku) : ?ProductInterface;
}