rubicon/object-reveal

There is no license information available for the latest version (1.0.0) of this package.

Reveal unaccessible object members

Installs: 58 790

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/rubicon/object-reveal

1.0.0 2015-02-19 12:46 UTC

This package is not auto-updated.

Last update: 2025-10-11 23:16:54 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'