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