array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ru', ), 'this' => array ( 0 => 'reflectionproperty.getdeclaringclass.php', 1 => 'ReflectionProperty::getDeclaringClass', ), 'up' => array ( 0 => 'class.reflectionproperty.php', 1 => 'ReflectionProperty', ), 'prev' => array ( 0 => 'reflectionproperty.getattributes.php', 1 => 'ReflectionProperty::getAttributes', ), 'next' => array ( 0 => 'reflectionproperty.getdefaultvalue.php', 1 => 'ReflectionProperty::getDefaultValue', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ru', 'path' => 'reference/reflection/reflectionproperty/getdeclaringclass.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
ReflectionProperty::getDeclaringClass — Получает класс, в котором объявили свойство
Метод получает название класса, в котором объявили свойство.
У этой функции нет параметров.
Метод возвращает объект класса ReflectionClass.