/** * @param ShopgateShippingMethod $c */ public function visitShippingMethod(ShopgateShippingMethod $c) { $properties = $c->buildProperties(); // iterate the simple variables $properties = $this->iterateSimpleProperties($properties); // set last value to converted array $this->array = $properties; }