phpday 2025 - Call For Papers

The ReflectionEnum class

(PHP 8 >= 8.1.0)

Вступ

The ReflectionEnum class reports information about an Enum.

Короткий огляд класу

class ReflectionEnum extends ReflectionClass {
/* Успадковані константи */
/* Успадковані властивості */
public string $name;
/* Методи */
public __construct(object|string $objectOrClass)
public getCases(): array
public hasCase(string $name): bool
public isBacked(): bool
/* Успадковані методи */
public static ReflectionClass::export(mixed $argument, bool $return = false): string
public ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
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
}

Прогляньте також

Зміст

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top