tommyknocker / chain
Easy chain any object
0.0.1
2018-11-15 08:12 UTC
Requires (Dev)
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2025-05-16 00:33:24 UTC
README
composer require tommyknocker/chain
Library that chains every class without modifying it.
Examples
use Tommyknocker/Chain/Chain;
Chain::YourObject('param1','param2)
->currentObjectMethod('param2')
->change('SomeOtherObjects', $args)
->otherObjectMethod();
//To access current method result you may use:
Chain::YourObject('param1','param2)->result;
//To access current object instance you may use
Chain::YourObject('param1','param2)->instance;
Plans
- Use external DI
- Test library with different namespace objects