Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
27 | class Reference implements ReferenceInterface |
||
28 | { |
||
29 | private string $id; |
||
30 | |||
31 | 13 | private function __construct(string $id) |
|
32 | { |
||
33 | 13 | $this->id = $id; |
|
34 | 13 | } |
|
35 | |||
36 | 1 | public function getId(): string |
|
37 | { |
||
38 | 1 | return $this->id; |
|
39 | } |
||
40 | |||
41 | 14 | public static function to($id): ReferenceInterface |
|
47 | } |
||
48 | |||
49 | 12 | public function resolve(ContainerInterface $container) |
|
52 | } |
||
53 | } |
||
54 |