| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 12 | final class EdgeKey implements Stringable |
||
| 13 | { |
||
| 14 | private readonly string $key; |
||
| 15 | |||
| 16 | 13 | public static function from(Name $name, TypeDeclaration $type): EdgeKey |
|
| 17 | { |
||
| 18 | 13 | return new EdgeKey($name . $type); |
|
| 19 | } |
||
| 20 | |||
| 21 | 13 | private function __construct(string $key) |
|
| 22 | { |
||
| 23 | 13 | $this->key = $key; |
|
|
|
|||
| 24 | } |
||
| 25 | |||
| 26 | 13 | public function __toString(): string |
|
| 29 | } |
||
| 30 | } |
||
| 31 |