Sunnysideup\EcommerceProductVariation\Tasks\EcommerceTaskCSVToVariations::addFieldToObject
adds a field to the variation
Signature
protected function addFieldToObject(
$variation,
array
$variationData,
string
$objectField,
[string
$arrayField = ''] )
Parameters
$variation
—$variationData
— array- - the array of data
$objectField
— string- - the name of the field on the variation itself
$arrayField
— string- - the name of the field in the variationData