WordPress\AiClient\Common

AbstractEnum::getConstantsprotected staticWP 0.1.0

Gets all constants for this enum class.

Method of the class: AbstractEnum{}

No Hooks.

Returns

Array. string> Map of constant names to values.

Usage

$result = AbstractEnum::getConstants(): array;

Changelog

Since 0.1.0 Introduced.

AbstractEnum::getConstants() code WP 7.0

final protected static function getConstants(): array
{
    $className = static::class;
    if (!isset(self::$cache[$className])) {
        self::$cache[$className] = static::determineClassEnumerations($className);
    }
    return self::$cache[$className];
}