Skip to content

RubiconPHP/object-reveal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectReveal

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'

About

Simple wrapper that allow access to object's private and protected members

Resources

Stars

Watchers

Forks

Packages

No packages published