$issue_id ] ); $issue = reset( $match ); $this->id = $issue_id; $this->description = $issue['title']; $this->status = Status::WARN; $this->link = $details_link; $this->issue = $issue; $this->vulnerability = $vulnerability; $this->entry = 'vulnerabilities'; } public function get_meta() { $meta = [ 'issue' => $this->issue, 'type' => $this->vulnerability['type'], ]; if ( isset( $this->vulnerability['software'] ) ) { $meta['software'] = $this->vulnerability['software']; } return $meta; } /** * Get the version the vulnerability was fixed in. * * @return string|null */ public function get_fixed_in() { return $this->issue['fixed_in']; } }