use Shopware\Bundle\StoreFrontBundle\Struct\Thumbnail;
class StructHydrator{ /**
* @param array $data
*
* @return PropertyGroup
*/
public function createPropertyGroup($data) { $group =
new PropertyGroup();
$group->
setId($data['id'
]);
$group->
setName($data['name'
]);
$group->
setFilterable($data['filterable'
]);
$me =
$this;
$options =
array_map(function D
$temp) use ($me) { return $me->
createPropertyOption($temp);
},
$data['options'
]);
$group->
setOptions($options);
$group->
addAttributes($this->
createAttributes($data['attributes'
]));