| 1 | <?php |
||
| 7 | final class Compose |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var iterable |
||
| 11 | */ |
||
| 12 | private $pieces; |
||
| 13 | |||
| 14 | private function __construct(iterable $pieces) |
||
| 18 | |||
| 19 | public static function pieces(callable ... $pieces) |
||
| 23 | |||
| 24 | public static function iterable(iterable $iterable) |
||
| 28 | |||
| 29 | public function __invoke(... $args) |
||
| 37 | } |
||
| 38 |