[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/Models/Enums/ -> OptionEnum.php (summary)

(no description)

File Size: 107 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OptionEnum:: (1 method):
  determineClassEnumerations()


Class: OptionEnum  - X-Ref

Enum for model options.

This enum dynamically includes all options from ModelConfig KEY_* constants
in addition to the explicitly defined constants below.

Explicitly defined option (not in ModelConfig):
determineClassEnumerations(string $className)   X-Ref
Determines the class enumerations by reflecting on class constants.

Overrides the parent method to dynamically add constants from ModelConfig
that are prefixed with KEY_. These are transformed to remove the KEY_ prefix
and converted to snake_case values.

return: array<string, string> The enum constants.
param: class-string $className The fully qualified class name.



Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref