hydrateDocumentLineItem.php
Table of Contents
Functions
- hydrateDocumentLineItem() : mixed
- Hydrate an array definition with the product or service class of a document line item.
Functions
hydrateDocumentLineItem()
Hydrate an array definition with the product or service class of a document line item.
hydrateDocumentLineItem([mixed $init = null ]) : mixed
The item of a BusinessDocumentLine is
typed as a Product|Service union, which no property type can resolve on its own :
the target class is therefore read from the payload's JSON-LD @type.
Parameters
- $init : mixed = null
-
Single item data or array of item data.