php8.5
Home/ Manual/ reflection / reflectionenumunitcase/ ReflectionEnumUnitCase::__construct

ReflectionEnumUnitCase::__construct

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.0)

Instantiates a ReflectionEnumUnitCase object

Description

ReflectionEnumUnitCase::__construct(object|string $class, string $constant)

Parameters

class

An enum instance or a name.

constant

An enum constant name.

Source: reference/reflection/reflectionenumunitcase/construct.xml · from the official PHP manual (php/doc-en)