Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class Times implements Operation |
||
15 | { |
||
16 | /** |
||
17 | * @var callable|null |
||
18 | */ |
||
19 | private $callback; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private $number; |
||
25 | |||
26 | /** |
||
27 | * Times constructor. |
||
28 | * |
||
29 | * @param int $number |
||
30 | * @param callable|null $callback |
||
31 | */ |
||
32 | public function __construct(int $number, ?callable $callback = null) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function on(iterable $collection): Closure |
||
63 |