Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ReflectionEnumUnitCase::getValueReflectionEnumBackedCase::__construct>
^ReflectionLast updated: Mon, 26 Oct 2026

The ReflectionEnumBackedCase class

(PHP 8 >= 8.1.0)

Introduction

The ReflectionEnumBackedCase class reports information about an Enum backed case, which has a scalar equivalent.

Class synopsis

class ReflectionEnumBackedCase extends ReflectionEnumUnitCase {
/* Inherited constants */
/* Inherited properties */
public string $name;
public string $class;
/* Methods */
public function __construct(object|string $class, string $constant)
public function getBackingValue(): int|string
/* Inherited methods */
public static function ReflectionClassConstant::export(mixed $class, string $name, bool $return = ?): string
public function ReflectionClassConstant::getAttributes(?string $name = null, int $flags = 0): array
}

Table of Contents


<ReflectionEnumUnitCase::getValueReflectionEnumBackedCase::__construct>
^ReflectionLast updated: Mon, 26 Oct 2026