| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class MapKeyStream extends IteratorIterator implements StreamInterface |
||
| 13 | { |
||
| 14 | use StreamTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var callable |
||
| 18 | */ |
||
| 19 | private $transformer; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * MapStream constructor. |
||
| 24 | * |
||
| 25 | * @param StreamInterface $stream |
||
| 26 | * @param callable $transformer |
||
| 27 | */ |
||
| 28 | 27 | public function __construct(StreamInterface $stream, callable $transformer) |
|
| 33 | 27 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | #[\ReturnTypeWillChange] |
||
| 46 |