# WHMCS\CustomField\CustomFieldValue

`Class` · extends `AbstractModel`

Custom Fields Values model class

## Methods

### customField

```php
public function customField()
```

A custom field value belongs to a single custom field.

**Returns** `BelongsTo\|CustomField`

### addon

```php
public function addon()
```

**Returns** `BelongsTo\|Addon`

### client

```php
public function client()
```

**Returns** `BelongsTo\|Client`

### service

```php
public function service()
```

**Returns** `BelongsTo\|Service`

### scopeOfService

```php
public function scopeOfService(Builder $query, int $serviceId): Builder
```

**Parameters**

| Type | Name | Description |
|  --- | --- | --- |
| `Builder` | `$query` |  |
| `integer` | `$serviceId` |  |


**Returns** `Builder`

### getValueAttribute

```php
public function getValueAttribute($value): ?string
```

**Returns** `string\|null`

### setValueAttribute

```php
public function setValueAttribute($value): void
```