php / 8.1.5 / reflectionclass.isenum.html /

ReflectionClass::isEnum

(PHP 8 >= 8.1.0)

ReflectionClass::isEnumReturns whether this is an enum

Description

public ReflectionClass::isEnum(): bool

Checks if a class is an enum.

Parameters

This function has no parameters.

Return Values

Returns true if this is an enum, false otherwise.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionclass.isenum.php