status = $status; return $this; } /** * Get the status code of the host or service check result * * @return int */ public function getStatus(): int { if ($this->status === null) { throw new \LogicException( 'You are accessing an unset property. Please make sure to set it beforehand.' ); } return $this->status; } /** * Set the text output of the host or service check result * * @param string $output * * @return $this */ public function setOutput(string $output): self { $this->output = $output; return $this; } /** * Get the text output of the host or service check result * * @return ?string */ public function getOutput() { return $this->output; } /** * Set the performance data of the host or service check result * * @param string|null $performanceData * * @return $this */ public function setPerformanceData(string $performanceData = null): self { $this->performanceData = $performanceData; return $this; } /** * Get the performance data of the host or service check result * * @return ?string */ public function getPerformanceData() { return $this->performanceData; } }