コード例 #1
0
ファイル: Search.php プロジェクト: Johnee/homework
 /**
  * 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());
 }
コード例 #2
0
ファイル: DataCollector.php プロジェクト: m6web/aws-bundle
 /**
  * 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());
 }