# $productPage->decrement()

> Decrement a given field value

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

```php
$productPage->decrement(string $field, int $by = 1, int $min): Kirby\Cms\ModelWithContent
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$field` | `string` | `–` |
| `$by` | `int` | `1` |
| `$min` | `int` | `0` |

## Return type

`Kirby\Cms\ModelWithContent`

## Parent class

`Wagnerwagner\Merx\ProductPage` inherited from `Kirby\Cms\ModelWithContent`
