The ReflectionEnumUnitCase class

(PHP 8 >= 8.1.0)

Introduction

The ReflectionEnumUnitCase class reports information about an Enum unit case, which has no scalar equivalent.

Synopsis de la classe

class ReflectionEnumUnitCase extends ReflectionClassConstant {
/* Constants héritées */
/* Propriétés héritées */
public string $name;
public string $class;
/* Méthodes */
public __construct(object|string $class, string $constant)
public getValue(): UnitEnum
/* Méthodes héritées */
public static ReflectionClassConstant::export(mixed $class, string $name, bool $return = ?): string
public ReflectionClassConstant::getAttributes(?string $name = null, int $flags = 0): array
}

Sommaire

add a note add a note

User Contributed Notes

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