/** * Get the prestashop group id. * * @param AbstractAttribute $pimAttribute * @param Family $pimFamily * * @return int|null */ protected function getGroupId(AbstractAttribute $pimAttribute, Family $pimFamily) { $pimGroup = $pimAttribute->getGroup(); if ($pimGroup !== null) { $prestashopGroupId = $this->attributeGroupMappingManager->getIdFromGroup($pimGroup, $pimFamily, $this->getPrestashopUrl()); } else { $prestashopGroupId = null; } return $prestashopGroupId; }