Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class Factory implements Constructor |
||
13 | { |
||
14 | private $class; |
||
15 | private $method; |
||
16 | |||
17 | 2 | private function __construct(string $class, string $method) |
|
21 | 2 | } |
|
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 8 | public static function fromString(Str $value): Constructor |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 1 | public function __invoke(...$arguments): object |
|
45 |