public function getCustomFields($object)
    {
        $customFields = [];
        foreach ($object->getCustomFields() as $field) {
            $customFields[$field->getInternalFieldName()] = $field->getValue();
        }

        return $customFields;
    }
public function getCustomFields($object)
    {
        $customFields = [];
        foreach ($object->getCustomFields() as $field) {
            $customFields[$field->getInternalFieldName()] = $field->getValue();
        }

        return $customFields;
    }
public function getCustomFields ( $ object ) { $ customFields = [ ] ; foreach ( $ object -> getCustomFields ( ) as $ field ) { $ customFields [ $ field -> getInternalFieldName ( ) ] = $ field -> getValue ( ) ; } return $ customFields ; }
Creates a custom field array

@param \ShopgateAddress | \ShopgateCustomer $object
todo-sg: refactor this method into Shopgate\Extended\Customer own class

@return array
Creates a custom field array