duncan3dc/object-intruder
最新稳定版本:1.1.0
Composer 安装命令:
composer require duncan3dc/object-intruder
包简介
A small library to access private/protected properties/methods of objects
README 文档
README
A small PHP library to access private/protected properties/methods of objects
Installation
The recommended method of installing this library is via Composer.
Run the following command from your project root:
$ composer require duncan3dc/object-intruder
Usage
use duncan3dc\ObjectIntruder\Intruder; $table = new Intruder(new Table); $table->secretMethodNotPublic("Hello", "World"); $table->privateStuff = "modified";
Unfortunatly due to a limitation of __call methods with parameters passed by reference are not supported.
However there is a workaround available using the _call() method:
$stuff = "start"; $table = new Intruder(new Table); $table->_call("secretMethod", $stuff, Table::MODIFY);
Changelog
A Changelog has been available since the beginning of time
Where to get help
Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter
统计信息
- 总下载量: 319.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 26
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2016-10-30