status = in_array( $status, $allowed, true ) ? $status : self::STATUS_RECOMMENDED; $this->label = $label; $this->description = $description; $this->debugValue = $debugValue !== '' ? $debugValue : $this->status; $this->actionLabel = $actionLabel; $this->actionUrl = $actionUrl; } public function getStatus(): string { return $this->status; } public function getLabel(): string { return $this->label; } public function getDescription(): string { return $this->description; } public function getDebugValue(): string { return $this->debugValue; } public function getActionLabel(): string { return $this->actionLabel; } public function getActionUrl(): string { return $this->actionUrl; } public function isCritical(): bool { return $this->status === self::STATUS_CRITICAL; } public function isGood(): bool { return $this->status === self::STATUS_GOOD; } }