hydrateAdditionalProperty.php
Table of Contents
Functions
- hydrateAdditionalProperty() : array<string|int, PropertyValue>|mixed|null
- Hydrate an array of PropertyValue objects.
Functions
hydrateAdditionalProperty()
Hydrate an array of PropertyValue objects.
hydrateAdditionalProperty([mixed $properties = null ]) : array<string|int, PropertyValue>|mixed|null
Anything that is not an array is handed back untouched — a lone
PropertyValue is a legal shape of the additionalProperty property,
and this helper is not the place to reject it. An array that is not an
indexed, non-empty list yields null, so a caller can tell "nothing to
hydrate" from a result.
Parameters
- $properties : mixed = null
-
An indexed array of PropertyValue definitions, or any value to pass through.