Download the PHP package hakito/publisher without Composer
On this page you can find all versions of the php package hakito/publisher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hakito/publisher
More information about hakito/publisher
Files in hakito/publisher
Download hakito/publisher
More information about hakito/publisher
Files in hakito/publisher
Vendor hakito
Package publisher
Short Description Proxy for accessing protected/private class members.
License MIT
Homepage https://github.com/hakito/PhpPublisher
Package publisher
Short Description Proxy for accessing protected/private class members.
License MIT
Homepage https://github.com/hakito/PhpPublisher
Please rate this library. Is it a good library?
Informations about the package publisher
PhpPublisher
Simple proxy for accessing protected/private class members.
It's intention is to give unit tests access to private members without reinventing the wheel.
This helper uses closures to access private members of a class instead of reflection.
Installation
Usage
Guess you have a class with private members:
Create the proxy to access these members:
Accessing static members
If you want to access static fields or methods you have to use the class StaticPublished
Setting fields and calling methods works the same as for instances.
Limitations
The published method call cannot set a reference argument.
The return value from method call cannot be a reference
All versions of publisher with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package hakito/publisher contains the following files
Loading the files please wait ....