rubicon / object-reveal
There is no license information available for the latest version (1.0.0) of this package.
Reveal unaccessible object members
1.0.0
2015-02-19 12:46 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.5.0
This package is not auto-updated.
Last update: 2026-03-29 01:50:23 UTC
README
Simple wrapper that allow access to object's private and protected members.
Requirements
PHP >= 5.4
Getting Started
class User
{
private $name;
private function getName()
{
return $this->name;
}
}
$revealed = new Rubicon\ObjectReveal\ObjectReveal(new User);
$revealed->name = 'John';
echo $revealed->getName(); // 'John'