# Google Certificate Authority Service V1 Client - Class RevocationDetails (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class RevocationDetails.

Describes fields that are relavent to the revocation of a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate).

Generated from protobuf message `google.cloud.security.privateca.v1.Certificate.RevocationDetails`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1 \\ Certificate

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ revocation_state` | `int` Indicates why a [Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was revoked. |
| `↳ revocation_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time at which this [Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was revoked. |

### getRevocationState

Indicates why a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was
revoked.

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

### setRevocationState

Indicates why a
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was
revoked.

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

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

### getRevocationTime

The time at which this
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was
revoked.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasRevocationTime

### clearRevocationTime

### setRevocationTime

The time at which this
[Certificate](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) was
revoked.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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