ReflectionClass::isEnum

(PHP 8 >= 8.1.0)

ReflectionClass::isEnumReturns whether this is an enum

說明

public ReflectionClass::isEnum(): bool

Checks if a class is an enum.

參數

此函數沒有參數。

返回值

Returns true if this is an enum, false otherwise.