* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Adapter\Customer\Group\Repository; use PrestaShop\PrestaShop\Core\Domain\Customer\Group\Exception\GroupNotFoundException; use PrestaShop\PrestaShop\Core\Domain\Customer\Group\ValueObject\GroupId; use PrestaShop\PrestaShop\Core\Repository\AbstractObjectModelRepository; /** * Provides methods to access Group data storage */ class GroupRepository extends AbstractObjectModelRepository { /** * @param GroupId $groupId * * @throws GroupNotFoundException */ public function assertGroupExists(GroupId $groupId): void { $this->assertObjectModelExists( $groupId->getValue(), 'group', GroupNotFoundException::class ); } }