Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | abstract class RepetitionEnvelope implements Repetition |
||
16 | { |
||
17 | /** |
||
18 | * Ctor. |
||
19 | * |
||
20 | * @phpstan-param T $subject |
||
21 | * @phpstan-param Closure(T): Y $context |
||
22 | * @param mixed $subject element to be processed. |
||
23 | * @param Closure $context context for the element. |
||
24 | */ |
||
25 | public function __construct( |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Returns several results of applying context to subject. |
||
46 | * |
||
47 | * @param int $count |
||
48 | * @phpstan-return Y[] |
||
49 | * @return mixed[] |
||
50 | */ |
||
51 | final public function times(int $count): array |
||
59 |