private function getCustomerData(UserProfile $profile)
    {
        $customerData = [];
        foreach (['firstName', 'lastName', 'email'] as $field) {
            $data = $profile->{$field};
            $customerData[strtolower($field)] = $data !== null ? $data : '-';
        }
        return $customerData;
    }
private function getCustomerData(UserProfile $profile)
    {
        $customerData = [];
        foreach (['firstName', 'lastName', 'email'] as $field) {
            $data = $profile->{$field};
            $customerData[strtolower($field)] = $data !== null ? $data : '-';
        }
        return $customerData;
    }
private function getCustomerData ( UserProfile $ profile ) { $ customerData = [ ] ; foreach ( [ 'firstName' , 'lastName' , 'email' ] as $ field ) { $ data = $ profile -> { $ field } ; $ customerData [ strtolower ( $ field ) ] = $ data !== null ? $ data : '-' ; } return $ customerData ; }
Gets customer data for a hybrid auth profile.

@param UserProfile $profile
@return array
Gets customer data for a hybrid auth profile .