# Google Certificate Authority Service V1 Client - Class CertChain (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 CertChain.

Generated from protobuf message `google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1 \\ FetchCaCertsResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ certificates` | `string[]` The certificates that form the CA chain, from leaf to root order. |

### getCertificates

The certificates that form the CA chain, from leaf to root order.

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

### setCertificates

The certificates that form the CA chain, from leaf to root order.

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

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