/** * Print the results to the command line. * * @return void */ private function displayResults($results) { foreach ($results as $ticket) { printf("%-20s\t%-40s\t%-10s\t%-10s\t%12s\t%12s\n", $ticket->departure, $ticket->arrival, $ticket->departure_time, $ticket->arrival_time, sprintf("%s %s", $ticket->price_low, $ticket->currency), sprintf("%s %s", $ticket->price_high, $ticket->currency)); } printf("\nThe search returned %d routes in %.2f seconds.\n", sizeof($results), $this->parser->getExecutionTime()); }
/** * Listen for aws command event * * @param object $event The event object */ public function onCommand($event) { $this->data['commands'][] = array('command' => $event->getCommand(), 'arguments' => $event->getArguments(), 'executiontime' => $event->getExecutionTime()); }