Example #1
0
 /**
  * @param Query $query
  * @param string $name
  * @param integer $ip
  * @throws \Exception
  */
 private function query(Query $query, $name, $ip)
 {
     $address = $query->find($ip);
     $this->stdout("\t{$name}: ", Console::FG_YELLOW);
     $this->stdout("{$address}\n");
 }
Example #2
0
 /**
  * @param OutputInterface $output
  * @param Query $query
  * @param string $name
  * @param integer $ip
  * @throws \Exception
  */
 private function query(OutputInterface $output, Query $query, $name, $ip)
 {
     $address = $query->find($ip);
     $output->writeln("\t<comment>{$name}:</comment> {$address}");
 }