AbstractEnum::__construct( string $value, string $name )

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

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

Parameters

$valuestringrequired
The enum value.
$namestringrequired
The constant name.

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

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