ReflectionClassConstant::getDeclaringClass

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::getDeclaringClassGets declaring class

Description

public ReflectionClassConstant::getDeclaringClass(): ReflectionClass

Gets the declaring class.

Parameters

This function has no parameters.

Return Values

A ReflectionClass object.