$this->attributeHydrator =
$attributeHydrator;
$this->mediaHydrator =
$mediaHydrator;
} /**
* @param array<array<string, mixed>> $data
*
* @return Set[]
*/
public function hydrateValues(array
$data) { $this->
sortGroups($data);
$sets =
[];
foreach ($data as $row) { $setId =
$row['__propertySet_id'
];
$groupId =
$row['__propertyGroup_id'
];
$optionId =
$row['__propertyOption_id'
];
$set =
$sets[$setId] ??
$this->
hydrateSet($row);
$groups =
$set->
getGroups();