capturedInput = $input; return $this; } public function setTimeoutSeconds(int $seconds): self { $this->capturedTimeout = $seconds; return $this; } public function run(): int { return $this->successful ? 0 : $this->exitCode; } public function isSuccessful(): bool { return $this->successful; } public function getOutput(): string { return $this->output; } public function getErrorOutput(): string { return $this->errorOutput; } public function getExitCode(): int { return $this->successful ? 0 : $this->exitCode; } }