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
Quote
ShippingAssignment
ShippingAssignmentPersister.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Quote\Model\Quote\ShippingAssignment
;
7
8
use
Magento\Quote\Api\Data\CartInterface
;
9
use
Magento\Quote\Api\Data\ShippingAssignmentInterface
;
10
11
class
ShippingAssignmentPersister
12
{
16
private
$shippingAssignmentProcessor;
17
21
public
function
__construct
(
ShippingAssignmentProcessor
$shippingAssignmentProcessor)
22
{
23
$this->shippingAssignmentProcessor = $shippingAssignmentProcessor;
24
}
25
31
public
function
save
(
CartInterface
$quote
,
ShippingAssignmentInterface
$shippingAssignment)
32
{
33
if
(
$quote
->getIsActive()) {
34
$this->shippingAssignmentProcessor->save(
$quote
, $shippingAssignment);
35
}
36
}
37
}
Magento\Quote\Api\Data\CartInterface
Definition:
CartInterface.php:13
$quote
$quote
Definition:
paypal_quote.php:17
Magento\Quote\Api\Data\ShippingAssignmentInterface
Definition:
ShippingAssignmentInterface.php:14
Magento\Quote\Model\Quote\ShippingAssignment
Definition:
ShippingAssignmentPersister.php:6
Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentPersister
Definition:
ShippingAssignmentPersister.php:11
Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentPersister\save
save(CartInterface $quote, ShippingAssignmentInterface $shippingAssignment)
Definition:
ShippingAssignmentPersister.php:31
Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentProcessor
Definition:
ShippingAssignmentProcessor.php:18
Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentPersister\__construct
__construct(ShippingAssignmentProcessor $shippingAssignmentProcessor)
Definition:
ShippingAssignmentPersister.php:21