# $pricingRules->__set()

> Internal setter for each object in the Collection; override from the Toolkit Collection is needed to make the CMS collections case-sensitive; child classes can override it again to add validation and custom behavior depending on the object type

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

```php
$pricingRules->__set(string $id, $object): void
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$id` | `string` | `–` |
| `$object` | `–` | `–` |

## Return type

`void`

## Parent class

`Wagnerwagner\Merx\PricingRules` inherited from `Kirby\Cms\Collection`
