Skip to content
PHP Ecosystem
Explore

Vocabulary

API reference › Debug Core › Helper › Vocabulary

final classPHPForge\Debug\Helper\Vocabulary
Sourcesrc/Helper/Vocabulary.php

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

MethodDescriptionDefined by
logLevel() staticReturns 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() staticReturns the verb suffix for an SQL statement type.Vocabulary
statusClass() staticReturns the status-class suffix for an HTTP status code.Vocabulary
verb() staticReturns the semantic verb suffix for an HTTP method.Vocabulary
public static function logLevel(int $level): string

Returns the level suffix (error, warning, info, trace, profile, or other) for a LogLevel wire value. Profile begin/end markers share the profile hue.

Parameters

ParameterTypeDescription
$levelintLog-level wire value.

Returns

string: Semantic log-level suffix.

public static function sqlVerb(string $type): string

Returns the verb suffix for an SQL statement type.

Parameters

ParameterTypeDescription
$typestringSQL statement type.

Returns

string: Semantic verb suffix.

public static function statusClass(int $code): string

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

Parameters

ParameterTypeDescription
$codeintHTTP status code.

Returns

string: Status-class suffix.

public static function verb(string $method): string

Returns the semantic verb suffix for an HTTP method.

Parameters

ParameterTypeDescription
$methodstringHTTP method.

Returns

string: Semantic verb suffix.