# Grafeas V1 Client - Class FileLocation (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 FileLocation.

Indicates the location at which a package was found.

Generated from protobuf message `grafeas.v1.FileLocation`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ file_path` | `string` For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file. |
| `↳ layer_details` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.LayerDetails` Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package). |
| `↳ line_number` | `int` Line number in the file where the package was found. Optional field that only applies to source repository scanning. |

### getFilePath

For jars that are contained inside .war files, this filepath
can indicate the path to war file combined with the path to jar file.

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

### setFilePath

For jars that are contained inside .war files, this filepath
can indicate the path to war file combined with the path to jar file.

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

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

### getLayerDetails

Each package found in a file should have its own layer metadata (that is,
information from the origin layer of the package).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.LayerDetails|null` |   |

### hasLayerDetails

### clearLayerDetails

### setLayerDetails

Each package found in a file should have its own layer metadata (that is,
information from the origin layer of the package).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.LayerDetails` |

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

### getLineNumber

Line number in the file where the package was found.

Optional field that only applies to source repository scanning.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLineNumber

Line number in the file where the package was found.

Optional field that only applies to source repository scanning.

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

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