WordPress\AiClient\Common
AbstractEnum::__construct
Constructor is private to ensure instances are created through static methods.
Метод класса: AbstractEnum{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->__construct( $value, $name );
- $value(строка) (обязательный)
- The enum value.
- $name(строка) (обязательный)
- The constant name.
Список изменений
| С версии 0.1.0 | Введена. |
Код AbstractEnum::__construct() AbstractEnum:: construct WP 7.1.4
final private function __construct(string $value, string $name)
{
$this->value = $value;
$this->name = $name;
}