WordPress\AiClient\Common

AbstractEnum::is │ public │ WP 0.1.0

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

Метод класса: AbstractEnum{}

Хуков нет.

Возвращает

bool. True if enums are identical.

Использование

$AbstractEnum = new AbstractEnum();
$AbstractEnum->is( $other ): bool;
$other(self) (обязательный)
The other enum to compare.

Список изменений

С версии 0.1.0 Введена.

Код AbstractEnum::is() WP 7.1.4

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