private OutputFormatterInterface
$formatter;
/**
* @param int|null $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
* @param bool $decorated Whether to decorate messages
* @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
*/
public function __construct(?int
$verbosity = self::VERBOSITY_NORMAL, bool
$decorated = false, OutputFormatterInterface
$formatter = null
) { $this->verbosity =
$verbosity ?? self::VERBOSITY_NORMAL;
$this->formatter =
$formatter ??
new OutputFormatter();
$this->formatter->
setDecorated($decorated);
} /**
* @return void
*/
public function setFormatter(OutputFormatterInterface
$formatter) { $this->formatter =
$formatter;
} public function getFormatter(): OutputFormatterInterface
{