function TrimmedBufferOutput::__construct
Overrides Output::__construct
File
-
vendor/
symfony/ console/ Output/ TrimmedBufferOutput.php, line 27
Class
- TrimmedBufferOutput
- A BufferedOutput that keeps only the last N chars.
Namespace
Symfony\Component\Console\OutputCode
public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, ?OutputFormatterInterface $formatter = null) {
if ($maxLength <= 0) {
throw new InvalidArgumentException(\sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));
}
parent::__construct($verbosity, $decorated, $formatter);
$this->maxLength = $maxLength;
}