Total Complexity | 6 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | final class Set implements Constructor |
||
17 | { |
||
18 | private $type; |
||
19 | |||
20 | 9 | private function __construct(string $type) |
|
23 | 9 | } |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 15 | public static function fromString(Str $value): Constructor |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 3 | public function __invoke(...$arguments): object |
|
43 | { |
||
44 | 3 | return LazySet::of($this->type, ...$arguments); |
|
45 | } |
||
46 | |||
47 | 3 | public function compile(CompiledArgument ...$arguments): CompiledConstructor |
|
50 | } |
||
51 | |||
52 | 2 | public function __toString(): string |
|
55 | } |
||
56 | } |
||
57 |