$listItems->quantity()
Quantity of items of given type
$listItems->quantity(null|string $type = 'product'): float
Parameters
| Name | Type | Default |
|---|---|---|
$type |
null or string |
'product' |
Return type
float
Description
See ListItem::$allowedTypes for allowed types.