public function addAttributeGroup(AttributeGroup $group) { $this->attributeGroups[$group->getName()] = $group; }