public function bookingConfirmation($mro) { try { $result = $this->sc->bookingConfirmation(array('mro' => $mro->getParamsAsArray()))->return; } catch (Exception $ex) { echo $ex->getMessage(); return null; } // echo '<pre>'; // print_r($result); // echo '</pre>'; if ($result->message) { Template::errorTemplate("Server-Nachricht: " . $result->message); return null; } $bookingConf = new BookingConf(); $bookingConf->setParamsByArray($result->bookingConf); return $bookingConf; }