Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     if ($entries = $this->repository->frequent()) {
         $table = new Table($output);
         $table->setHeaders(['JobId', 'Title']);
         $rows = [];
         foreach ($entries as $entry) {
             $details = $this->connector->ticketDetails($entry->tid);
             $rows[] = [$entry->tid, $details->getTitle()];
         }
         $table->setRows($rows);
         $table->render();
     }
 }