hydrate
Table of Contents
Namespaces
Functions
- hydrateAggregateOffer() : AggregateOffer|null
- Hydrate an array definition with the AggregateOffer class.
- hydrateCustomer() : mixed
- Hydrate an array definition with the Customer class.
- hydrateCustomerEmployee() : mixed
- Hydrate an array definition with the CustomerEmployee class.
- hydrateCustomerSite() : mixed
- Hydrate an array definition with the CustomerSite class.
- hydrateStockLevel() : StockLevel|null
- Hydrate an array definition with the StockLevel class.
- hydrateWarehouse() : mixed
- Hydrate an array definition with the Warehouse 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.
Parameters
- $init : array<string|int, mixed>|null = null
Tags
Return values
AggregateOffer|nullhydrateCustomer()
Hydrate an array definition with the Customer class.
hydrateCustomer([mixed $init = null ]) : mixed
Handles both a single customer array and an array of customers, and hydrates the
nested contactPoint and address references so the resolved customer matches the
shape served by the dedicated /customers endpoint (typed, null fields dropped).
Parameters
- $init : mixed = null
-
Single customer data or array of customer data.
Tags
hydrateCustomerEmployee()
Hydrate an array definition with the CustomerEmployee class.
hydrateCustomerEmployee([mixed $init = null ]) : mixed
Handles both single employee array and array of employees.
Parameters
- $init : mixed = null
-
Single employee data or array of employee data
Tags
hydrateCustomerSite()
Hydrate an array definition with the CustomerSite class.
hydrateCustomerSite([mixed $init = null ]) : mixed
Handles both single CustomerSite array and array of CustomerSite things.
Parameters
- $init : mixed = null
-
Single CustomerSite data or array of CustomerSite data
Tags
hydrateStockLevel()
Hydrate an array definition with the StockLevel class.
hydrateStockLevel([mixed $init = null ]) : StockLevel|null
Use it in the 'products' definition in the DI container.
Parameters
- $init : mixed = null
Tags
Return values
StockLevel|nullhydrateWarehouse()
Hydrate an array definition with the Warehouse class.
hydrateWarehouse([mixed $init = null ]) : mixed
Parameters
- $init : mixed = null