| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class Map implements Constructor |
||
| 17 | { |
||
| 18 | private $key; |
||
| 19 | private $value; |
||
| 20 | |||
| 21 | 3 | private function __construct(string $key, string $value) |
|
| 22 | { |
||
| 23 | 3 | $this->key = $key; |
|
| 24 | 3 | $this->value = $value; |
|
| 25 | 3 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | 5 | public static function fromString(Str $value): Constructor |
|
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | 2 | public function __invoke(...$arguments): object |
|
| 61 |