Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }