hydrateAggregateOffer.php
Table of Contents
Functions
- hydrateAggregateOffer() : AggregateOffer|null
- Hydrate an array definition with the AggregateOffer class.
Functions
hydrateAggregateOffer()
Hydrate an array definition with the AggregateOffer class.
hydrateAggregateOffer([array<string|int, mixed>|null $init = null ]) : AggregateOffer|null
Use it in the 'products' definition in the DI container.
🔑 A bare reference survives inside a list, exactly as it does on its own : a list of unresolved handles comes back as it stands, and only an entry that was an array and resolved to nothing is dropped. The keys stay gap-free — a filtered list left with holes serializes as a JSON object, and a consumer walking the value gets something it cannot walk.
Parameters
- $init : array<string|int, mixed>|null = null