Download the PHP package horat1us/php-method-injection without Composer
On this page you can find all versions of the php package horat1us/php-method-injection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download horat1us/php-method-injection
More information about horat1us/php-method-injection
Files in horat1us/php-method-injection
Download horat1us/php-method-injection
More information about horat1us/php-method-injection
Files in horat1us/php-method-injection
Vendor horat1us
Package php-method-injection
Short Description PHP Trait to inject methods
License MIT
Package php-method-injection
Short Description PHP Trait to inject methods
License MIT
Please rate this library. Is it a good library?
Informations about the package php-method-injection
PHP Method Injection Trait
This trait allows you to extend your object with custom method dynamically.
Usage
You can use DynamicObject or implement interface InjectMethodsInterface with trait InjectMethods on your custom object.
Simple example will output:
About
This package is created for using in tests. For example, you have interface
and you need to test arguments which will be passed to this service. You can define fake service:
and use it in your test service
Install
Tests
License
This project is open-sourced software licensed under the MIT license
All versions of php-method-injection with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package horat1us/php-method-injection contains the following files
Loading the files please wait ....