38 public function toNestedArray(
41 $dataObjectType =
null 43 if ($dataObjectType ==
null) {
44 $dataObjectType = get_class($dataObject);
46 $dataObjectArray = $this->dataObjectProcessor->buildOutputDataArray($dataObject, $dataObjectType);
52 foreach ($customAttributes as $attributeValue) {
64 if (!in_array($attributeKey, $skipAttributes)) {
65 $dataObjectArray[$attributeKey] = $attributeValue;
69 return $dataObjectArray;
82 $skipCustomAttributes = [],
83 $dataObjectType =
null 85 $dataObjectArray = $this->toNestedArray($dataObject, $skipCustomAttributes, $dataObjectType);
100 return $extensibleObjectData;
const CUSTOM_ATTRIBUTES_KEY
toFlatArray(ExtensibleDataInterface $dataObject, $skipCustomAttributes=[], $dataObjectType=null)
__construct(DataObjectProcessor $dataObjectProcessor)
const EXTENSION_ATTRIBUTES_KEY
static toFlatArray($data)
static convertCustomAttributesToSequentialArray($extensibleObjectData)