You are here

public function PriceListItem::setQuantity in Commerce Pricelist 8.2

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

Sets the quantity.

Parameters

string $quantity: The quantity.

Return value

$this

Overrides PriceListItemInterface::setQuantity

File

src/Entity/PriceListItem.php, line 152

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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