WordPress\AiClient\Common

AbstractEnum::__constructprivateWP 0.1.0

Constructor is private to ensure instances are created through static methods.

Method of the class: AbstractEnum{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->__construct( $value, $name );
$value(string) (required)
The enum value.
$name(string) (required)
The constant name.

Changelog

Since 0.1.0 Introduced.

AbstractEnum::__construct() code WP 7.0

final private function __construct(string $value, string $name)
{
    $this->value = $value;
    $this->name = $name;
}