rubicon / object-reveal
Reveal unaccessible object members
Installs: 51 767
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.5.0
This package is not auto-updated.
Last update: 2024-12-21 18:58:58 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'