| 1 | <?php |
||
| 10 | class RewriterContainer implements \IteratorAggregate |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var RewriterInterface[] |
||
| 14 | */ |
||
| 15 | private $rewriters; |
||
| 16 | |||
| 17 | 4 | public function __construct(RewriterInterface ...$rewriters) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Generates all possible permutations of all possible lenghts of the rewriter set |
||
| 24 | * |
||
| 25 | * @return \Traversable & iterable<ChainingRewriter> |
||
| 26 | */ |
||
| 27 | 141 | public function getIterator(): \Traversable |
|
| 33 | } |
||
| 34 |