private function getCustomer(array $entry)
    {
        $languageIdentity = $this->getLanguageIdentity($entry);

        if (null === $languageIdentity) {
            $this->logger->info('language of customer not found', [
                'entry' => $entry,
            ]);

            return null;
        }

        $cutomerGroupIdentity = $this->getCustomerGroupIdentity($entry['customerData']);

        if (null === $cutomerGroupIdentity) {
            $this->logger->info('customer group not found', [
                'entry' => $entry,
            ]);

            return null;
        }

        $shopIdentity = $this->getShopIdentity($entry['customerData']);

        if (null === $shopIdentity) {
            $this->logger->info('customer shop not found', [
                'entry' => $entry,
            ]);

            return null;
        }

        $customer = new Customer();
        $customer->setType(Customer::TYPE_NORMAL);
        $customer->setNumber($entry['customerData']['number']);
        $customer->setEmail($this->getMail($entry));
        $customer->setLanguageIdentifier($languageIdentity->getObjectIdentifier());
        $customer->setCustomerGroupIdentifier($cutomerGroupIdentity->getObjectIdentifier());
        $customer->setGender($entry['customerData']['gender'] === 'male' ? Customer::GENDER_MALE : Customer::GENDER_FEMALE);
        $customer->setFirstname($entry['customerData']['firstName']);
        $customer->setLastname($entry['customerData']['lastName']);
        $customer->setPhoneNumber($this->getPhoneNumber($entry));
        $customer->setMobilePhoneNumber($this->getMobilePhoneNumber($entry));
        $customer->setShopIdentifier($shopIdentity->getObjectIdentifier());

        return $customer;
    }
private function getCustomer(array $entry)
    {
        $languageIdentity = $this->getLanguageIdentity($entry);

        if (null === $languageIdentity) {
            $this->logger->info('language of customer not found', [
                'entry' => $entry,
            ]);

            return null;
        }

        $cutomerGroupIdentity = $this->getCustomerGroupIdentity($entry['customerData']);

        if (null === $cutomerGroupIdentity) {
            $this->logger->info('customer group not found', [
                'entry' => $entry,
            ]);

            return null;
        }

        $shopIdentity = $this->getShopIdentity($entry['customerData']);

        if (null === $shopIdentity) {
            $this->logger->info('customer shop not found', [
                'entry' => $entry,
            ]);

            return null;
        }

        $customer = new Customer();
        $customer->setType(Customer::TYPE_NORMAL);
        $customer->setNumber($entry['customerData']['number']);
        $customer->setEmail($this->getMail($entry));
        $customer->setLanguageIdentifier($languageIdentity->getObjectIdentifier());
        $customer->setCustomerGroupIdentifier($cutomerGroupIdentity->getObjectIdentifier());
        $customer->setGender($entry['customerData']['gender'] === 'male' ? Customer::GENDER_MALE : Customer::GENDER_FEMALE);
        $customer->setFirstname($entry['customerData']['firstName']);
        $customer->setLastname($entry['customerData']['lastName']);
        $customer->setPhoneNumber($this->getPhoneNumber($entry));
        $customer->setMobilePhoneNumber($this->getMobilePhoneNumber($entry));
        $customer->setShopIdentifier($shopIdentity->getObjectIdentifier());

        return $customer;
    }
@param array $entry

@return null|Customer