You are here

public function Promotion::setCustomerUsageLimit in Commerce Core 8.2

Sets the per customer promotion usage limit.

Parameters

int $usage_limit_customer: The per customer promotion usage limit.

Return value

$this

Overrides PromotionInterface::setCustomerUsageLimit

File

modules/promotion/src/Entity/Promotion.php, line 415

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setCustomerUsageLimit($usage_limit_customer) {
  $this
    ->set('usage_limit_customer', $usage_limit_customer);
  return $this;
}