# Vocabulary

> Maps HTTP methods, status codes, and SQL statement types to the shared semantic hue vocabulary.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Helper](/docs/extensions/debug-core/reference/helper/index.md) › Vocabulary

| final class | `PHPForge\Debug\Helper\Vocabulary` |
| --- | --- |
| Source | [`src/Helper/Vocabulary.php`](https://github.com/php-forge/debug-core/blob/main/src/Helper/Vocabulary.php#L12) |

Maps HTTP methods, status codes, and SQL statement types to the shared semantic hue vocabulary.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`logLevel()`](#method-logLevel) static | Returns the level suffix (`error`, `warning`, `info`, `trace`, `profile`, or `other`) for a [`LogLevel`](/docs/extensions/debug-core/reference/helper/loglevel/index.md) wire value. Profile begin/end markers share the `profile` hue. | `Vocabulary` |
| [`sqlVerb()`](#method-sqlVerb) static | Returns the verb suffix for an SQL statement type. | `Vocabulary` |
| [`statusClass()`](#method-statusClass) static | Returns the status-class suffix for an HTTP status code. | `Vocabulary` |
| [`verb()`](#method-verb) static | Returns the semantic verb suffix for an HTTP method. | `Vocabulary` |

## Method details

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

```php
public static function logLevel(int $level): string
```

Returns the level suffix (`error`, `warning`, `info`, `trace`, `profile`, or `other`) for a [`LogLevel`](/docs/extensions/debug-core/reference/helper/loglevel/index.md) wire
value. Profile begin/end markers share the `profile` hue.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$level` | `int` | Log-level wire value. |

**Returns**

`string`: Semantic log-level suffix.

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

```php
public static function sqlVerb(string $type): string
```

Returns the verb suffix for an SQL statement type.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$type` | `string` | SQL statement type. |

**Returns**

`string`: Semantic verb suffix.

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

```php
public static function statusClass(int $code): string
```

Returns the status-class suffix for an HTTP status code.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$code` | `int` | HTTP status code. |

**Returns**

`string`: Status-class suffix.

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

```php
public static function verb(string $method): string
```

Returns the semantic verb suffix for an HTTP method.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$method` | `string` | HTTP method. |

**Returns**

`string`: Semantic verb suffix.