Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 0 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | public function __construct( |
||
29 | /** |
||
30 | * Iterator which validity is checked. |
||
31 | * |
||
32 | * @phpstan-var Iterator<TKey, TValue> |
||
33 | * @var Iterator |
||
34 | */ |
||
35 | private Iterator $origin, |
||
36 | |||
37 | /** |
||
38 | * Consequent path if iterator is valid. |
||
39 | * |
||
40 | * @phpstan-var Closure(Iterator<TKey, TValue>):T |
||
41 | * @var Closure |
||
42 | */ |
||
43 | private Closure $cons, |
||
44 | |||
45 | /** |
||
46 | * Alternate path if iterator is not valid. |
||
47 | * |
||
48 | * @phpstan-var Closure(Iterator<TKey, TValue>):T |
||
49 | * @var Closure |
||
50 | */ |
||
51 | private Closure $alter |
||
52 | ) { |
||
53 | } |
||
64 |