# $productList->slice()

> Returns a slice of the object

- Source: `src/Toolkit/Collection.php#L963` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Toolkit/Collection.php#L963>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$productList->slice(int $offset, null|int $limit = null): Kirby\Toolkit\Collection
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$offset` | `int` | `0` |
| `$limit` | `null\|int` | `null` |

## Return type

`Kirby\Toolkit\Collection`

## Parent class

`Wagnerwagner\Merx\ProductList` inherited from `Kirby\Toolkit\Collection`
