/** * AdaptiveTable constructor. * * @param OutputInterface $output * @param int|null $maxTableWidth * @param int|null $minColumnWidth */ public function __construct(OutputInterface $output, $maxTableWidth = null, $minColumnWidth = 10) { $this->outputCopy = $output; $this->maxTableWidth = $maxTableWidth !== null ? $maxTableWidth : $this->getTerminalWidth(); $this->minColumnWidth = $minColumnWidth; parent::__construct($output); }
public function __construct(OutputInterface $output) { parent::__construct($output); // the parent class's output is private, so we need a local one here... $this->localOutput = $output; }