PHP 8.5.0 Beta 2 available for testing

The ReflectionEnumUnitCase class

(PHP 8 >= 8.1.0)

Introduction

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

Class synopsis

class ReflectionEnumUnitCase extends ReflectionClassConstant {
/* Inherited constants */
/* Inherited properties */
public string $name ;
public string $class ;
/* Methods */
public __construct (object |string $class, string $constant)
public getValue (): UnitEnum
/* Inherited methods */
public static ReflectionClassConstant::export (mixed $class, string $name, bool $return = ?): string
}

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 によって変換されたページ (->オリジナル) /