PHP 8.5.0 Beta 2 available for testing

The ReflectionEnum class

(PHP 8 >= 8.1.0)

Introduction

The ReflectionEnum class reports information about an Enum.

Class synopsis

class ReflectionEnum extends ReflectionClass {
/* Inherited constants */
/* Inherited properties */
public string $name ;
/* Methods */
public __construct (object |string $objectOrClass)
public getCases (): array
public hasCase (string $name): bool
public isBacked (): bool
/* Inherited methods */
public static ReflectionClass::export (mixed $argument, bool $return = false ): string
public ReflectionClass::getAttributes (? string $name = null , int $flags = 0): array
public ReflectionClass::getStaticPropertyValue (string $name, mixed &$def_value = ?): mixed
public ReflectionClass::newLazyGhost (callable $initializer, int $options = 0): object
public ReflectionClass::newLazyProxy (callable $factory, int $options = 0): object
public ReflectionClass::resetAsLazyGhost (object $object, callable $initializer, int $options = 0): void
public ReflectionClass::resetAsLazyProxy (object $object, callable $factory, int $options = 0): void
}

See Also

Table of Contents

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /