# Severity

> Normalized security advisory severity levels.

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

| enum | `Foxy\Audit\Severity` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Audit/Severity.php`](https://github.com/php-forge/foxy/blob/main/src/Audit/Severity.php#L10) |

Normalized security advisory severity levels.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-CRITICAL"></span>`CRITICAL` | `'critical'` |  |
| <span id="case-HIGH"></span>`HIGH` | `'high'` |  |
| <span id="case-INFO"></span>`INFO` | `'info'` |  |
| <span id="case-LOW"></span>`LOW` | `'low'` |  |
| <span id="case-MODERATE"></span>`MODERATE` | `'moderate'` |  |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`isAtLeast()`](#method-isAtLeast) | Whether this severity meets or exceeds the threshold. | `Severity` |
| [`weight()`](#method-weight) | Returns the relative ordering weight of this severity. | `Severity` |

## Method details

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

```php
public function isAtLeast(self $threshold): bool
```

Whether this severity meets or exceeds the threshold.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$threshold` | `self` |  |

**Returns**

`bool`

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

```php
public function weight(): int
```

Returns the relative ordering weight of this severity.

**Returns**

`int`