public function Coupon::setCustomerUsageLimit in Commerce Core 8.2
Sets the per customer coupon usage limit.
Parameters
int $usage_limit_customer: The per customer coupon usage limit.
Return value
$this
Overrides CouponInterface::setCustomerUsageLimit
File
- modules/
promotion/ src/ Entity/ Coupon.php, line 144
Class
- Coupon
- Defines the Coupon entity.
Namespace
Drupal\commerce_promotion\EntityCode
public function setCustomerUsageLimit($usage_limit_customer) {
$this
->set('usage_limit_customer', $usage_limit_customer);
return $this;
}