You are here

public function CouponInterface::setUsageLimit in Commerce Core 8.2

Sets the coupon usage limit.

Parameters

int $usage_limit: The coupon usage limit.

Return value

$this

1 method overrides CouponInterface::setUsageLimit()
Coupon::setUsageLimit in modules/promotion/src/Entity/Coupon.php
Sets the coupon usage limit.

File

modules/promotion/src/Entity/CouponInterface.php, line 85

Class

CouponInterface
Provides an interface for defining coupon entities.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setUsageLimit($usage_limit);