Total Complexity | 6 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | final class Factory implements Constructor |
||
17 | { |
||
18 | private $class; |
||
19 | private $method; |
||
20 | |||
21 | 3 | private function __construct(string $class, string $method) |
|
25 | 3 | } |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 13 | public static function fromString(Str $value): Constructor |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function __invoke(...$arguments): object |
||
55 | } |
||
56 | |||
57 | 1 | public function __toString(): string |
|
62 |