2017 © Pedro PelĂĄez
 

application accessible-object

A library to reveal object internals.

image

php-cs-fixer/accessible-object

A library to reveal object internals.

  • Monday, August 7, 2017
  • by keradus
  • Repository
  • 2 Watchers
  • 0 Stars
  • 15,923 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 24 % Grown

The README.md

AccessibleObject

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)

Example

<?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'

The Versions

07/08 2017

dev-master

9999999-dev

A library to reveal object internals.

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0

 

The Development Requires

07/08 2017

v1.0.0

1.0.0.0

A library to reveal object internals.

  Sources   Download

MIT

The Requires

  • php ^5.3 || ^7.0

 

The Development Requires