public function enableOutput() { if ($this->isRunning()) { throw new \RuntimeException('Enabling output while the process is running is not possible.'); } $this->outputDisabled = false; return $this; }