You are here

public function CouponInterface::setCode in Commerce Core 8.2

Sets the coupon code.

Parameters

string $code: The coupon code.

Return value

$this

1 method overrides CouponInterface::setCode()
Coupon::setCode in modules/promotion/src/Entity/Coupon.php
Sets the coupon code.

File

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

Class

CouponInterface
Provides an interface for defining coupon entities.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setCode($code);