public function visitExternalCoupon(ShopgateExternalCoupon $c) { // get properties and iterate (no complex types in ShopgateExternalCoupon objects) $this->array = $this->iterateSimpleProperties($c->buildProperties()); }