getName() public method

public getName ( ) : string
return string Used as an identifier to access to the formatter or to display something more user-friendly to the user when referring to the formatter.
 /**
  * @param OutputFormatterInterface $outputFormatter
  * @param InputInterface           $input
  *
  * @return OutputFormatterInput
  */
 public function getOutputFormatterInput(OutputFormatterInterface $outputFormatter, InputInterface $input)
 {
     $buffer = [];
     foreach ($input->getOptions() as $k => $v) {
         if (strpos($k, 'formatter-' . $outputFormatter->getName() . '-') !== 0) {
             continue;
         }
         $option = substr($k, strlen('formatter-' . $outputFormatter->getName() . '-'));
         $buffer[$option] = $v;
     }
     return new OutputFormatterInput($buffer);
 }