Skip to content
PHP Ecosystem
Explore

CveResolverInterface

API reference › Foxy › Audit › CveResolverInterface

interfaceFoxy\Audit\CveResolverInterface
Sourcesrc/Audit/CveResolverInterface.php
Implemented by 1 type

Resolves the CVE identifiers of GitHub security advisories.

MethodDescriptionDefined by
resolveMany() abstractResolves the CVE identifiers of several advisories at once.CveResolverInterface
abstract public function resolveMany(list<string> $ghsaIds): array<string, Foxy\Audit\CveResolution|Throwable>

Resolves the CVE identifiers of several advisories at once.

Parameters

ParameterTypeDescription
$ghsaIdslist<string>GHSA identifiers to resolve.

Returns

array<string, CveResolution|Throwable>: One result for every identifier, keyed by canonical GHSA identifier; a Throwable marks a lookup that failed.

Throws