Adapter/PlentymarketsAdapter/ResponseParser/Category/CategoryResponseParser.php
private function getShopIdentity($plentyId)
    {
        $identity = $this->identityService->findOneBy([
            'adapterIdentifier' => (string) $plentyId,
            'adapterName' => PlentymarketsAdapter::NAME,
            'objectType' => Shop::TYPE,
        ]);

        if (null === $identity) {
            $this->logger->notice('shop not found', ['shop' => $plentyId]);

            return null;
        }

        $isMappedIdentity = $this->identityService->isMappedIdentity(
            $identity->getObjectIdentifier(),
            $identity->getObjectType(),
            $identity->getAdapterName()
        );

        if (!$isMappedIdentity) {
            return null;
        }

        return $identity;
    }
private function getShopIdentity($plentyId)
    {
        $identity = $this->identityService->findOneBy([
            'adapterIdentifier' => (string) $plentyId,
            'adapterName' => PlentymarketsAdapter::NAME,
            'objectType' => Shop::TYPE,
        ]);

        if (null === $identity) {
            $this->logger->notice('shop not found', ['shop' => $plentyId]);

            return null;
        }

        $isMappedIdentity = $this->identityService->isMappedIdentity(
            $identity->getObjectIdentifier(),
            $identity->getObjectType(),
            $identity->getAdapterName()
        );

        if (!$isMappedIdentity) {
            return null;
        }

        return $identity;
    }
@param int $plentyId

@return null|Identity