示例#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);
 }
示例#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);
 }