*/ public function toArray(): array { return array( 'rule_id' => $this->ruleId, 'wcag' => $this->wcag, 'severity' => $this->severity->value, 'message' => $this->message, 'context' => $this->context, 'how_to_fix' => $this->howToFix, ); } }