public static function buyTicket($date, $time, $visa) { // call payment service // confirm ticket availability and call make payment if (TicketService::checkAvailability($date, $time) && PaymentService::makePayment($visa)) { return true; } else { return false; } }