| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 14 | final class ProjectionMap extends TypedMap implements ToNativeInterface |
||
| 15 | { |
||
| 16 | 3 | public function __construct(iterable $projections = []) |
|
| 17 | { |
||
| 18 | 3 | $this->init($projections, [ProjectionInterface::class]); |
|
| 19 | 3 | } |
|
| 20 | |||
| 21 | 1 | public function toNative(): array |
|
| 22 | { |
||
| 23 | 1 | return $this->map( |
|
| 24 | 1 | fn(string $key, ProjectionInterface $projection): array => $projection->toNative() |
|
|
|
|||
| 25 | 1 | )->unwrap(); |
|
| 26 | } |
||
| 27 | } |
||
| 28 |