Copied!
CloneableInstantiable
Methods
public static getProperties(ReflectionClass $ref)
 

Retrieves all properties (including private ones), from object and all its ancestors.

Standard \ReflectionClass->getProperties() does not return private properties from ancestor classes.

  • author muratyaman@gmail.com
  • see http://php.net/manual/en/reflectionclass.getproperties.php
  • param \ReflectionClass $ref
  • return \ReflectionProperty[]
public static getProperty( $object, $name)
 

Retrieves property by name from object and all its ancestors.

  • param object|string $object
  • param string $name
  • throws \PropertyException
  • throws \ReflectionException
  • return \ReflectionProperty
Methods
public static getProperties(ReflectionClass $ref)
 

Retrieves all properties (including private ones), from object and all its ancestors.

Standard \ReflectionClass->getProperties() does not return private properties from ancestor classes.

  • author muratyaman@gmail.com
  • see http://php.net/manual/en/reflectionclass.getproperties.php
  • param \ReflectionClass $ref
  • return \ReflectionProperty[]
public static getProperty( $object, $name)
 

Retrieves property by name from object and all its ancestors.

  • param object|string $object
  • param string $name
  • throws \PropertyException
  • throws \ReflectionException
  • return \ReflectionProperty
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration