WordPress\AiClient\Common
AbstractEnum::__construct
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() AbstractEnum:: construct code WP 7.0
final private function __construct(string $value, string $name)
{
$this->value = $value;
$this->name = $name;
}