# LobValue

> Represents an Oracle BLOB value bound through a PDO LOB locator.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › [db](/docs/api/yii/db/index.md) › [oci](/docs/api/yii/db/oci/index.md) › LobValue

| final class | `yii\db\oci\LobValue` |
| --- | --- |
| Implements | [`yii\db\ExpressionInterface`](/docs/api/yii/db/expressioninterface/index.md) |
| Since | 22.0 |
| Source | [`framework/db/oci/LobValue.php`](https://github.com/yiisoft/yii2/blob/22.0/framework/db/oci/LobValue.php#L23) |

Represents an Oracle `BLOB` value bound through a PDO LOB locator.

[`LobValueBuilder`](/docs/api/yii/db/oci/lobvaluebuilder/index.md) renders `EMPTY_BLOB()` and registers the payload for locator binding by [`Command`](/docs/api/yii/db/oci/command/index.md).

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) |  | `LobValue` |
| [`getColumnName()`](#method-getColumnName) | Returns the unquoted target column name. | `LobValue` |
| [`getValue()`](#method-getValue) |  | `LobValue` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct(string $columnName, string|resource $value)
```

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$columnName` | `string` |  |
| `$value` | `string\|resource` | Binary payload. |

### getColumnName() <span id="method-getColumnName"></span>

```php
public function getColumnName(): string
```

Returns the unquoted target column name.

**Returns**

`string`

### getValue() <span id="method-getValue"></span>

```php
public function getValue(): string|resource
```

**Returns**

`string|resource`: Binary payload.