| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 13 | final class Metadata extends Map implements MetadataInterface |
||
| 14 | { |
||
| 15 | 6 | private function __construct(iterable $metadata = []) |
|
| 16 | { |
||
| 17 | 6 | $this->init($metadata); |
|
| 18 | 6 | } |
|
| 19 | |||
| 20 | 3 | public static function makeEmpty(): self |
|
| 21 | { |
||
| 22 | 3 | return new self; |
|
| 23 | } |
||
| 24 | |||
| 25 | 2 | public function toNative(): array |
|
| 26 | { |
||
| 27 | 2 | return $this->unwrap(); |
|
| 28 | } |
||
| 29 | |||
| 30 | /** @param array $state */ |
||
| 31 | 4 | public static function fromNative($state): self |
|
| 34 | } |
||
| 35 | } |
||
| 36 |