Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
coupon_code_with_wildcard.php File Reference

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $salesRule = $objectManager->create(Rule::class)
 
 $coupon = $objectManager->create(Coupon::class)
 
 $couponRepository = $objectManager->get(CouponRepositoryInterface::class)
 

Variable Documentation

◆ $coupon

$coupon = $objectManager->create(Coupon::class)

Definition at line 38 of file coupon_code_with_wildcard.php.

◆ $couponRepository

$couponRepository = $objectManager->get(CouponRepositoryInterface::class)

Definition at line 44 of file coupon_code_with_wildcard.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 15 of file coupon_code_with_wildcard.php.

◆ $salesRule

$salesRule = $objectManager->create(Rule::class)

Definition at line 18 of file coupon_code_with_wildcard.php.