Adapter/PlentymarketsAdapter/ResponseParser/Order/OrderResponseParser.php
private function getPaymentStatusIdentity(array $entry)
    {
        $property = array_filter($entry['properties'], function (array $property) {
            return $property['typeId'] === 4;
        });

        if (!empty($property)) {
            //$property = array_shift($property);

            return $this->identityService->findOneBy([
                'adapterIdentifier' => (string) $entry['statusId'],
                'adapterName' => PlentymarketsAdapter::NAME,
                'objectType' => PaymentStatus::TYPE,
            ]);
        }

        return null;
    }
private function getPaymentStatusIdentity(array $entry)
    {
        $property = array_filter($entry['properties'], function (array $property) {
            return $property['typeId'] === 4;
        });

        if (!empty($property)) {
            //$property = array_shift($property);

            return $this->identityService->findOneBy([
                'adapterIdentifier' => (string) $entry['statusId'],
                'adapterName' => PlentymarketsAdapter::NAME,
                'objectType' => PaymentStatus::TYPE,
            ]);
        }

        return null;
    }
@param array $entry

@return null|Identity