Aggregating the same callable types to one invoking object.
$ composer require anper/callable-aggregate
use Anper\CallableAggregate\CallableAggregate;
$aggregate = new CallableAggregate();
$aggregate->append(function ($arg) {
echo $arg;
});
$aggregate('hello');
$ composer test
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.