dev-master
9999999-devA library to reveal object internals.
MIT
The Requires
- php ^5.3 || ^7.0
The Development Requires
v1.0.0
1.0.0.0A library to reveal object internals.
MIT
The Requires
- php ^5.3 || ^7.0
The Development Requires
A library to reveal object internals.
AccessibleObject
is small class allowing you to easily access internals of any object.
In general, it's bad practice to do so.
While we strongly discourage you to using it, it may be helpful in debugging or testing old, sad, legacy projects., (*1)
<?php class Foo { private $bar = 'baz'; } $object = new Foo(); echo $object->bar; // PHP Fatal error: Uncaught Error: Cannot access private property Foo::$bar $accessibleObject = new AccessibleObject($object); echo $accessibleObject->bar; // 'baz'
A library to reveal object internals.
MIT
A library to reveal object internals.
MIT