Exemple #1
0
 /**
  * Constructor.
  *
  * @param FormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
  */
 public function __construct($stream, FormatterInterface $formatter = null)
 {
     $this->stream = $stream;
     parent::__construct($formatter);
 }
 /**
  * Constructor.
  *
  * @param FormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
  */
 public function __construct(FormatterInterface $formatter = null)
 {
     $formatter = $formatter ?: new HtmlFormatter();
     parent::__construct($formatter);
 }