ReflectionClass::getEnumUnderlyingType

Returns the underlying type of this ReflectionClass, given that it represents an enum

public function getEnumUnderlyingType(): string;

If it does not, it throws.

Returns

  • string - the string representation of the underlying type.