axis = $axis; $this->required = $required; $this->detected = $detected; $this->message = $message; } /** * Axis identifier for this failure. */ public function axis(): string { return $this->axis; } /** * Minimum version required on this axis. */ public function required(): string { return $this->required; } /** * Detected version on this axis, or null when it could not be * determined at check time. */ public function detected(): ?string { return $this->detected; } /** * Human-readable, English description of the failure. */ public function message(): string { return $this->message; } /** * Array representation suitable for logging or serialization. * * @return array{axis: string, required: string, detected: ?string, message: string} */ public function toArray(): array { return array( 'axis' => $this->axis, 'required' => $this->required, 'detected' => $this->detected, 'message' => $this->message, ); } }