You are here

private function SecurityAdvisory::__construct in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php \Drupal\system\SecurityAdvisories\SecurityAdvisory::__construct()

Constructs a SecurityAdvisories object.

Parameters

string $title: The title of the advisory.

string $project: The project name.

string $type: The project type.

bool $is_psa: Whether this advisory is a public service announcement.

string $url: The URL to the advisory.

string[] $insecure_versions: The versions of the project that are currently insecure. For public service announcements this list does not include versions that will be marked as insecure when the new security release is published.

File

core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php, line 82

Class

SecurityAdvisory
Provides a security advisory value object.

Namespace

Drupal\system\SecurityAdvisories

Code

private function __construct(string $title, string $project, string $type, bool $is_psa, string $url, array $insecure_versions) {
  $this->title = $title;
  $this->project = $project;
  $this->type = $type;
  $this->isPsa = $is_psa;
  $this->url = $url;
  $this->insecureVersions = $insecure_versions;
}