The ReflectionEnum class

(PHP 8 >= 8.1.0)

Introduction

The ReflectionEnum class reports information about an Enum.

Class synopsis

classReflectionEnumextendsReflectionClass {
public__construct(object|string$objectOrClass)
publicgetCases(): array
publichasCase(string$name): bool
publicisBacked(): bool
publicstaticReflectionClass::export(mixed$argument, bool$return = false): string
}

See Also

Table of Contents

To Top