WordPress\AiClient\Common

AbstractEnum::ispublicWP 0.1.0

Checks if this enum is the same instance type and value as another enum.

Method of the class: AbstractEnum{}

No Hooks.

Returns

true|false. True if enums are identical.

Usage

$AbstractEnum = new AbstractEnum();
$AbstractEnum->is( $other ): bool;
$other(self) (required)
The other enum to compare.

Changelog

Since 0.1.0 Introduced.

AbstractEnum::is() code WP 7.0

final public function is(self $other): bool
{
    return $this === $other;
    // Since we're using singletons, we can use identity comparison
}