Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
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 | public static function from(Name $name, TypeDeclaration $type): EdgeKey |
||
17 | { |
||
18 | return new EdgeKey($name . $type); |
||
19 | } |
||
20 | |||
21 | private function __construct(string $key) |
||
22 | { |
||
23 | $this->key = $key; |
||
|
|||
24 | } |
||
25 | |||
26 | public function __toString(): string |
||
29 | } |
||
30 | } |
||
31 |