# Google Shopping Merchant Lfp V1 Client - Class LfpStoreState (1.2.1)

1.2.1 (latest) 1.2.0 1.1.3 1.0.0 0.4.0 0.3.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Shopping Merchant Lfp V1 Client class LfpStoreState.

The state of a specific merchant's store.

Generated from protobuf message `google.shopping.merchant.lfp.v1.LfpMerchantState.LfpStoreState`

## Namespace

Google \\ Shopping \\ Merchant \\ Lfp \\ V1 \\ LfpMerchantState

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ store_code` | `string` Required. Immutable. The identifier of this store. |
| `↳ matching_state` | `int` Output only. The store matching state. |
| `↳ matching_state_hint` | `string` The hint of why the matching has failed (only set if matching_state is FAILED). |

### getStoreCode

Required. Immutable. The identifier of this store.

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

### setStoreCode

Required. Immutable. The identifier of this store.

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

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

### getMatchingState

Output only. The store matching state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [StoreMatchingState](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.LfpStoreState.StoreMatchingState). |

### setMatchingState

Output only. The store matching state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [StoreMatchingState](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-lfp/latest/V1.LfpMerchantState.LfpStoreState.StoreMatchingState). |

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

### getMatchingStateHint

The hint of why the matching has failed (only set if matching_state is
FAILED).

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

### setMatchingStateHint

The hint of why the matching has failed (only set if matching_state is
FAILED).

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

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