severity = $severity; $this->line_from = $line_from; $this->line_to = $line_to; $this->type = $type; $this->message = $message; $this->file_name = $file_name; $this->file_path = $file_path; $this->snippet = $snippet; $this->selected_text = $selected_text; $this->from = $from; $this->to = $to; $this->snippet_from = $snippet_from; $this->snippet_to = $snippet_to; $this->column_from = $column_from; $this->column_to = $column_to; $this->error_level = $error_level; } public function getLink() : string { $class = 'Psalm\\Issue\\' . $this->type; return 'https://psalm.dev/' . str_pad((string) $class::SHORTCODE, 3, "0", STR_PAD_LEFT); } }