ObjectSecurity
Whit this package you can check grant access to classes, methods and properties of object.
Add FivePercent/ObjectSecurity in your composer.json:
{
"require": {
"fivepercent/object-security": "~1.0"
}
}
Now tell composer to download the library by running the command:
$ php composer.phar update fivepercent/object-security