# CveResolverInterface

> Resolves the CVE identifiers of GitHub security advisories.

[API reference](/docs/api/index.md) › [Foxy](/docs/extensions/foxy/reference/index.md) › [Audit](/docs/extensions/foxy/reference/audit/index.md) › CveResolverInterface

| interface | `Foxy\Audit\CveResolverInterface` |
| --- | --- |
| Source | [`src/Audit/CveResolverInterface.php`](https://github.com/php-forge/foxy/blob/main/src/Audit/CveResolverInterface.php#L13) |

Implemented by 1 type:

- [`GitHubAdvisoryCveResolver`](/docs/extensions/foxy/reference/audit/githubadvisorycveresolver/index.md)

Resolves the CVE identifiers of GitHub security advisories.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`resolveMany()`](#method-resolveMany) abstract | Resolves the CVE identifiers of several advisories at once. | `CveResolverInterface` |

## Method details

### resolveMany() <span id="method-resolveMany"></span>

```php
abstract public function resolveMany(list<string> $ghsaIds): array<string, Foxy\Audit\CveResolution|Throwable>
```

Resolves the CVE identifiers of several advisories at once.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$ghsaIds` | `list<string>` | GHSA identifiers to resolve. |

**Returns**

`array<string,` [`CveResolution`](/docs/extensions/foxy/reference/audit/cveresolution/index.md)`|`[`Throwable`](https://www.php.net/manual/en/class.throwable.php)`>`: One result for every identifier, keyed by canonical GHSA identifier; a `Throwable` marks a lookup that failed.

**Throws**

- [`Foxy\Exception\RuntimeException`](/docs/extensions/foxy/reference/exception/runtimeexception/index.md): if an identifier is not a GHSA identifier; nothing is requested in that case.