Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
CouponManagement Class Reference
Inheritance diagram for CouponManagement:
CouponManagementInterface

Public Member Functions

 __construct (\Magento\Quote\Api\CartRepositoryInterface $quoteRepository)
 
- Public Member Functions inherited from CouponManagementInterface
 get ($cartId)
 
 set ($cartId, $couponCode)
 
 remove ($cartId)
 

Protected Attributes

 $quoteRepository
 

Detailed Description

Coupon management object.

Definition at line 18 of file CouponManagement.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Quote\Api\CartRepositoryInterface  $quoteRepository)

Constructs a coupon read service object.

Parameters
\Magento\Quote\Api\CartRepositoryInterface$quoteRepositoryQuote repository.

Definition at line 32 of file CouponManagement.php.

34  {
35  $this->quoteRepository = $quoteRepository;
36  }

Field Documentation

◆ $quoteRepository

$quoteRepository
protected

Definition at line 25 of file CouponManagement.php.


The documentation for this class was generated from the following file: