# $listItems->quantity()

> Quantity of items of given type

- Source: `src/ListItems.php#L110` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/ListItems.php#L110>

```php
$listItems->quantity(null|string $type = 'product'): float
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$type` | `null\|string` | `'product'` |

## Return type

`float`

## Description

See ListItem::$allowedTypes for allowed types.

## Parent class

`Wagnerwagner\Merx\ListItems`
