Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class Construct implements Constructor |
||
10 | { |
||
11 | private $value; |
||
12 | |||
13 | 35 | private function __construct(string $value) |
|
14 | { |
||
15 | 35 | $this->value = $value; |
|
16 | 35 | } |
|
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | 35 | public static function fromString(Str $value): Constructor |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 16 | public function __invoke(...$arguments): object |
|
36 |