# Grafeas V1 Client - Class NonCompliantFile (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 Reference documentation and code samples for the Grafeas V1 Client class NonCompliantFile.

Details about files that caused a compliance check to fail.

Generated from protobuf message `grafeas.v1.NonCompliantFile`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ path` | `string` Empty if `display_command` is set. |
| `↳ display_command` | `string` Command to display the non-compliant files. |
| `↳ reason` | `string` Explains why a file is non compliant for a CIS check. |

### getPath

Empty if `display_command` is set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPath

Empty if `display_command` is set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayCommand

Command to display the non-compliant files.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayCommand

Command to display the non-compliant files.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReason

Explains why a file is non compliant for a CIS check.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setReason

Explains why a file is non compliant for a CIS check.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |