Severity
API reference › Foxy › Audit › Severity
Normalized security advisory severity levels.
| Case | Value | Description |
|---|---|---|
CRITICAL | 'critical' | |
HIGH | 'high' | |
INFO | 'info' | |
LOW | 'low' | |
MODERATE | 'moderate' |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
isAtLeast() | Whether this severity meets or exceeds the threshold. | Severity |
weight() | Returns the relative ordering weight of this severity. | Severity |
Method details
Section titled “Method details”isAtLeast()
Section titled “isAtLeast() ”public function isAtLeast(self $threshold): boolWhether this severity meets or exceeds the threshold.
Parameters
| Parameter | Type | Description |
|---|---|---|
$threshold | self |
Returns
bool
weight()
Section titled “weight() ”public function weight(): intReturns the relative ordering weight of this severity.
Returns
int