@@ -106,16 +106,18 @@ public function getDataModel()
106
106
107
107
Based on interface, calls all SETTERS with given data to fill data object
108
108
109
- [ Api\DataObjectHelper::populateWithArray] ( https://github.com/magento/magento2/blob/2.2-develop /lib/internal/Magento/Framework/Api/DataObjectHelper.php#L80 )
109
+ [ Api\DataObjectHelper::populateWithArray] ( https://github.com/magento/magento2/blob/2.3 /lib/internal/Magento/Framework/Api/DataObjectHelper.php#L80 )
110
110
- calls data object SETTERS ` set* ` , ` setIs* ` with given raw data
111
111
- handles ` custom_attributes ` - data object.setCustomAttribute
112
112
113
113
114
+ Example: [ Magento\Customer\Controller\Account\Edit::execute] ( https://github.com/magento/magento2/blob/2.3/app/code/Magento/Customer/Controller/Account/Edit.php#L78 )
115
+
114
116
## buildOutputDataArray
115
117
116
118
Based on given interface, calls all GETTERS to make resulting data array.
117
119
118
- [ Reflection\DataObjectProcessor::buildOutputDataArray] ( https://github.com/magento/magento2/blob/2.2-develop /lib/internal/Magento/Framework/Reflection/DataObjectProcessor.php#L72 ) :
120
+ [ Reflection\DataObjectProcessor::buildOutputDataArray] ( https://github.com/magento/magento2/blob/2.3 /lib/internal/Magento/Framework/Reflection/DataObjectProcessor.php#L81 ) :
119
121
- \Magento\Framework\Reflection\MethodsMap::getMethodsMap - method name and getter return types
120
122
- filter only getters: is..., has..., get...
121
123
- get data using interface getter, e.g. $object->getSku() - based on Interface definition
@@ -125,3 +127,5 @@ Based on given interface, calls all GETTERS to make resulting data array.
125
127
- process return object: build return value objects with their return type annotation
126
128
- process return array: cast each element to type, e.g. int[ ] => (int) each value
127
129
- cast element to type
130
+
131
+ Example: [ Magento\Customer\Model\Address::updateData] ( https://github.com/magento/magento2/blob/2.3/app/code/Magento/Customer/Model/Address.php#L145 )
0 commit comments