Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-quote
Model
GuestCart
GuestCartRepository.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Quote\Model\GuestCart
;
7
8
use
Magento\Quote\Api\GuestCartRepositoryInterface
;
9
use
Magento\Quote\Model\QuoteIdMask
;
10
use
Magento\Quote\Api\CartRepositoryInterface
;
11
use Magento\Quote\Model\QuoteIdMaskFactory;
12
16
class
GuestCartRepository
implements
GuestCartRepositoryInterface
17
{
21
protected
$quoteIdMaskFactory
;
22
26
protected
$quoteRepository
;
27
34
public
function
__construct
(
35
CartRepositoryInterface
$quoteRepository
,
36
QuoteIdMaskFactory
$quoteIdMaskFactory
37
) {
38
$this->quoteIdMaskFactory =
$quoteIdMaskFactory
;
39
$this->quoteRepository =
$quoteRepository
;
40
}
41
45
public
function
get
(
$cartId
)
46
{
48
$quoteIdMask
= $this->quoteIdMaskFactory->create()->load(
$cartId
,
'masked_id'
);
49
return
$this->quoteRepository->get(
$quoteIdMask
->getQuoteId());
50
}
51
}
$quoteIdMask
$quoteIdMask
Definition:
quote_with_bundle_and_options_rollback.php:22
Magento\Quote\Model\GuestCart\GuestCartRepository\__construct
__construct(CartRepositoryInterface $quoteRepository, QuoteIdMaskFactory $quoteIdMaskFactory)
Definition:
GuestCartRepository.php:34
Magento\Quote\Model\GuestCart\GuestCartRepository\$quoteRepository
$quoteRepository
Definition:
GuestCartRepository.php:26
Magento\Quote\Api\GuestCartRepositoryInterface
Definition:
GuestCartRepositoryInterface.php:13
Magento\Quote\Model\GuestCart
Definition:
GuestBillingAddressManagement.php:6
$cartId
$cartId
Definition:
quote.php:22
Magento\Quote\Api\CartRepositoryInterface
Definition:
CartRepositoryInterface.php:13
Magento\Quote\Model\GuestCart\GuestCartRepository\$quoteIdMaskFactory
$quoteIdMaskFactory
Definition:
GuestCartRepository.php:21
Magento\Quote\Model\GuestCart\GuestCartRepository
Definition:
GuestCartRepository.php:16
Magento\Quote\Model\QuoteIdMask
Definition:
QuoteIdMask.php:15