You are here

public function PriceListItem::setQuantity in Commerce Pricelist 8

Same name and namespace in other branches
  1. 8.2 src/Entity/PriceListItem.php \Drupal\commerce_pricelist\Entity\PriceListItem::setQuantity()

Sets the price list item quantity.

Parameters

string $quantity: The price list item quantity.

Return value

$this

Overrides PriceListItemInterface::setQuantity

File

src/Entity/PriceListItem.php, line 112

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setQuantity($quantity) {
  $this
    ->set('quantity', $quantity);
  return $this;
}