Am 15.03.2017 um 23:33 schrieb Marco Pivetta:
> Also the only way to get all properties from an instance of an inheritance 
> tree.

I use the Reflection API in
https://github.com/sebastianbergmann/object-reflector/blob/master/src/ObjectReflector.php#L24
for retrieving inherited non-public attributes from an object by
traversing the inheritance chain using while ($reflector =
$reflector->getParentClass()).

I wish the ReflectionObject would allow access to all attributes of an
object no matter whether an attribute is declared in the class of the
object or in a parent class.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to