Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class Product implements Operation |
||
17 | { |
||
18 | /** |
||
19 | * @var iterable[] |
||
20 | */ |
||
21 | private $iterables; |
||
22 | |||
23 | /** |
||
24 | * Product constructor. |
||
25 | * |
||
26 | * @param iterable ...$iterables |
||
27 | */ |
||
28 | public function __construct(iterable ...$iterables) |
||
29 | { |
||
30 | $this->iterables = $iterables; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function on(iterable $collection): Closure |
||
52 | }; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param $iterable |
||
57 | * |
||
58 | * @return Generator|void |
||
59 | */ |
||
60 | private function cartesian(iterable $iterable) |
||
77 |