Vocabulary
API reference › Debug Core › Helper › Vocabulary
Maps HTTP methods, status codes, and SQL statement types to the shared semantic hue vocabulary.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
logLevel() static | Returns the level suffix (error, warning, info, trace, profile, or other) for a LogLevel wire value. Profile begin/end markers share the profile hue. | Vocabulary |
sqlVerb() static | Returns the verb suffix for an SQL statement type. | Vocabulary |
statusClass() static | Returns the status-class suffix for an HTTP status code. | Vocabulary |
verb() static | Returns the semantic verb suffix for an HTTP method. | Vocabulary |
Method details
Section titled “Method details”logLevel()
Section titled “logLevel() ”public static function logLevel(int $level): stringReturns the level suffix (error, warning, info, trace, profile, or other) for a LogLevel 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()
Section titled “sqlVerb() ”public static function sqlVerb(string $type): stringReturns the verb suffix for an SQL statement type.
Parameters
| Parameter | Type | Description |
|---|---|---|
$type | string | SQL statement type. |
Returns
string: Semantic verb suffix.
statusClass()
Section titled “statusClass() ”public static function statusClass(int $code): stringReturns the status-class suffix for an HTTP status code.
Parameters
| Parameter | Type | Description |
|---|---|---|
$code | int | HTTP status code. |
Returns
string: Status-class suffix.
verb()
Section titled “verb() ”public static function verb(string $method): stringReturns the semantic verb suffix for an HTTP method.
Parameters
| Parameter | Type | Description |
|---|---|---|
$method | string | HTTP method. |
Returns
string: Semantic verb suffix.