Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | final class Stream implements Constructor |
||
16 | { |
||
17 | private $type; |
||
18 | |||
19 | 4 | private function __construct(string $type) |
|
20 | { |
||
21 | 4 | $this->type = $type; |
|
22 | 4 | } |
|
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 6 | public static function fromString(Str $value): Constructor |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 2 | public function __invoke(...$arguments): object |
|
44 | } |
||
45 | } |
||
46 |