pid = $pid; $this->status = $status; } public function childStopped(): bool { return $this->pid > 0; } public function failed(): bool { return $this->pid < 0; } }