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

This package is not auto-updated.

Last update: 2024-04-13 15:11:51 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'