writer = $writer ?: new Writer(); } /** * {@inheritdoc} */ public function handle(): int { $this->writer->write($this->getInspector()); // @phpstan-ignore-line return self::QUIT; } /** * {@inheritdoc} */ public function setOutput(OutputInterface $output): self { $this->writer->setOutput($output); return $this; } /** * {@inheritdoc} */ public function getWriter(): Writer { return $this->writer; } }