public function ProductBundleItem::setMaximumQuantity in Commerce Product Bundle 8
@inheritdoc
Overrides BundleItemInterface::setMaximumQuantity
File
- src/
Entity/ ProductBundleItem.php, line 261
Class
- ProductBundleItem
- Defines the product bundle item entity.
Namespace
Drupal\commerce_product_bundle\EntityCode
public function setMaximumQuantity($maximum_quantity) {
$this
->set('max_quantity', (double) $maximum_quantity);
return $this;
}