# Google Cloud Dms V1 Client - Class EntityDdl (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Dms V1 Client class EntityDdl.

A single DDL statement for a specific entity

Generated from protobuf message `google.cloud.clouddms.v1.EntityDdl`

## Namespace

Google \\ Cloud \\ CloudDms \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ddl_type` | `string` Type of DDL (Create, Alter). |
| `↳ entity` | `string` The name of the database entity the ddl refers to. |
| `↳ ddl` | `string` The actual ddl code. |
| `↳ entity_type` | `int` The entity type (if the DDL is for a sub entity). |
| `↳ issue_id` | `string[]` EntityIssues found for this ddl. |

### getDdlType

Type of DDL (Create, Alter).

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

### setDdlType

Type of DDL (Create, Alter).

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

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

### getEntity

The name of the database entity the ddl refers to.

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

### setEntity

The name of the database entity the ddl refers to.

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

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

### getDdl

The actual ddl code.

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

### setDdl

The actual ddl code.

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

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

### getEntityType

The entity type (if the DDL is for a sub entity).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DatabaseEntityType](https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.DatabaseEntityType). |

### setEntityType

The entity type (if the DDL is for a sub entity).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DatabaseEntityType](https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.DatabaseEntityType). |

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

### getIssueId

EntityIssues found for this ddl.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setIssueId

EntityIssues found for this ddl.

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

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