php8.5
Home/ Manual/ reflection / reflectionproperty/ ReflectionProperty::getDeclaringClass

ReflectionProperty::getDeclaringClass

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Gets declaring class

Description

ReflectionProperty::getDeclaringClass(): ReflectionClass

Gets the declaring class.

Parameters Parameters

Return Values

A ReflectionClass object.

See Also

  • ReflectionProperty::getName

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