# Google Cloud Data Catalog Lineage V1 Client - Class EventLink (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.1 1.0.3 0.5.5 0.4.0 0.3.1 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud Data Catalog Lineage V1 Client class EventLink.

A lineage between source and target entities.

Generated from protobuf message `google.cloud.datacatalog.lineage.v1.EventLink`

## Namespace

Google \\ Cloud \\ DataCatalog \\ Lineage \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` Required. Reference to the source entity |
| `↳ target` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.EntityReference` Required. Reference to the target entity |
| `↳ dependency_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-datacatalog-lineage/latest/V1.DependencyInfo` Optional. Describes how the target depends on the source. |

### getSource

Required. Reference to the source entity

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

### hasSource

### clearSource

### setSource

Required. Reference to the source entity

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

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

### getTarget

Required. Reference to the target entity

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

### hasTarget

### clearTarget

### setTarget

Required. Reference to the target entity

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

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

### getDependencyInfo

Optional. Describes how the target depends on the source.

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

### hasDependencyInfo

### clearDependencyInfo

### setDependencyInfo

Optional. Describes how the target depends on the source.

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

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