Total Complexity | 6 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | final class ApiConstructor implements ApiConstructorInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var ConfigInterface |
||
20 | */ |
||
21 | private $config; |
||
22 | |||
23 | /** |
||
24 | * @var ConfigExtractorInterface |
||
25 | */ |
||
26 | private $configExtractor; |
||
27 | |||
28 | public function __construct(ConfigInterface $config, ConfigExtractorInterface $configExtractor) |
||
32 | } |
||
33 | |||
34 | public function create(): API |
||
45 | } |
||
46 | } |
||
47 | |||
48 | private function createFromConfig(): API |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @throws Exception |
||
55 | */ |
||
56 | private function createFromSessionPath(string $path): API |
||
61 |