php / 8.1.5 / reflectionenumunitcase.getenum.html /

ReflectionEnumUnitCase::getEnum

(PHP 8 >= 8.1.0)

ReflectionEnumUnitCase::getEnumGets the reflection of the enum of this case

Description

public ReflectionEnumUnitCase::getEnum(): ReflectionEnum

Gets the reflection of the enum of this case.

Parameters

This function has no parameters.

Return Values

A ReflectionEnum instance describing the Enum this case belongs to.

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionenumunitcase.getenum.php