SecurityAdvisory
final class SecurityAdvisory (View source)
| internal |
Provides a security advisory value object.
These come from the security advisory feed on Drupal.org.
Properties
| protected string | $title | The title of the advisory. |
|
| protected string | $project | The project name for the advisory. |
|
| protected string | $type | The project type for the advisory. |
|
| protected bool | $isPsa | Whether this advisory is a PSA instead of another type of advisory. |
|
| protected string[] | $insecureVersions | The currently insecure versions of the project. |
|
| protected string | $url | The URL to the advisory. |
Methods
Creates a SecurityAdvisories instance from an array.
Validates the security advisory data.
Gets the title.
Gets the project associated with the advisory.
Gets the type of project associated with the advisory.
Whether the security advisory is for core or not.
Whether the security advisory is a public service announcement or not.
Gets the currently insecure versions of the project.
Gets the URL to the security advisory.
Details
static SecurityAdvisory
createFromArray(array $data)
Creates a SecurityAdvisories instance from an array.
static protected void
validateAdvisoryData(array $data)
Validates the security advisory data.
string
getTitle()
Gets the title.
string
getProject()
Gets the project associated with the advisory.
string
getProjectType()
Gets the type of project associated with the advisory.
bool
isCoreAdvisory()
Whether the security advisory is for core or not.
bool
isPsa()
Whether the security advisory is a public service announcement or not.
array
getInsecureVersions()
Gets the currently insecure versions of the project.
string
getUrl()
Gets the URL to the security advisory.