# AuditRequest

> Describes the scope and failure threshold of an audit run.

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

| final readonly class | `Foxy\Audit\AuditRequest` |
| --- | --- |
| Source | [`src/Audit/AuditRequest.php`](https://github.com/php-forge/foxy/blob/main/src/Audit/AuditRequest.php#L10) |

Describes the scope and failure threshold of an audit run.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-minimumSeverity"></span>`$minimumSeverity` readonly constructor | [`Severity`](/docs/extensions/foxy/reference/audit/severity/index.md) | Lowest severity that makes the audit report vulnerable. Default: `\Foxy\Audit\Severity::LOW`. | `AuditRequest` |
| <span id="property-noDev"></span>`$noDev` readonly constructor | `bool` | Whether development dependencies are excluded. Default: `false`. | `AuditRequest` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates an immutable audit request. | `AuditRequest` |

## Method details

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

```php
public function __construct(Foxy\Audit\Severity $minimumSeverity = \Foxy\Audit\Severity::LOW, bool $noDev = false)
```

Creates an immutable audit request.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$minimumSeverity` | [`Severity`](/docs/extensions/foxy/reference/audit/severity/index.md) | Lowest severity that makes the audit report vulnerable. |
| `$noDev` | `bool` | Whether development dependencies are excluded. |