| Total Complexity | 6 | 
| Total Lines | 30 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1);  | 
            ||
| 16 | final class StreamMap extends TypedMap implements MakeEmptyInterface, ToNativeInterface  | 
            ||
| 17 | { | 
            ||
| 18 | public function __construct(iterable $streams = [])  | 
            ||
| 19 |     { | 
            ||
| 20 | $this->init($streams, [StreamInterface::class]);  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | public function register(StreamInterface $stream): self  | 
            ||
| 24 |     { | 
            ||
| 25 | return $this->with((string)$stream->getAggregateId(), $stream);  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | public function unregister(AggregateIdInterface $aggregateId): self  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | public static function makeEmpty(): self  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | public function toNative(): array  | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 |