rubicon / object-reveal
Reveal unaccessible object members
Installs: 50 908
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-11-23 18:28:43 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'