/**
  * Executes the current command.
  *
  * @param InputInterface  $input  An InputInterface instance
  * @param OutputInterface $output An OutputInterface instance
  *
  * @return integer 0 if everything went fine, or an error code
  *
  * @throws \LogicException When this abstract class is not implemented
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     if ($input->getOption('quiet')) {
         return;
     }
     $workers = $this->gearmanClient->getWorkers();
     if (is_array($workers)) {
         $it = 1;
         foreach ($workers as $worker) {
             $output->writeln('<comment>@Worker:  </comment><info>' . $worker['className'] . '</info>');
             $output->writeln('<comment>callablename:  </comment><info>' . $worker['callableName'] . '</info>');
             $output->writeln('<comment>Jobs:</comment>');
             foreach ($worker['jobs'] as $job) {
                 $output->writeln('<comment>  - #' . $it++ . '</comment>');
                 $output->writeln('<comment>      name: ' . $job['methodName'] . '</comment>');
                 $output->writeln('<comment>      callablename:</comment><info> ' . $job['realCallableNameNoPrefix'] . '</info>');
                 if (false === is_null($job['jobPrefix'])) {
                     $output->writeln('<comment>      jobPrefix:</comment><info> ' . $job['jobPrefix'] . '</info>');
                 }
             }
         }
     }
 }