/**
* @return array
*/
private function buildData(AnalyzedCustomer
$customer) { $data =
[ 'id' =>
$customer->
getId(),
'email' =>
$customer->
getEmail(),
'active' =>
$customer->
getActive(),
'accountmode' =>
$customer->
getAccountMode(),
'firstlogin' =>
$this->
formatDate($customer->
getFirstLogin()),
'newsletter' =>
$customer->
isNewsletter(),
'shop_id' =>
$customer->
getShopId(),
'default_billing_address_id' =>
$customer->
getDefaultBillingAddressId(),
'title' =>
$customer->
getTitle(),
'salutation' =>
$customer->
getSalutation(),
'firstname' =>
$customer->
getFirstname(),
'lastname' =>
$customer->
getLastname(),
'birthday' =>
$this->
formatDate($customer->
getBirthday()),
'customernumber' =>
$customer->
getNumber(),
'customer_group_id' =>
$customer->
getCustomerGroup() ?
$customer->
getCustomerGroup()->
getId() : null,
'customer_group_name' =>
$customer->
getCustomerGroup() ?
$customer->
getCustomerGroup()->
getName() : '',
'payment_id' =>
$customer->
getPaymentId(),