AbstractEnum::getConstants(): WordPressAiClientCommonarray<string,

In this article

Gets all constants for this enum class.

Return

WordPressAiClientCommonarray<string, string> Map of constant names to values.

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.