Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | final class Grapher |
||
16 | { |
||
17 | /** @var string */ |
||
18 | private $classDir; |
||
19 | |||
20 | /** @var Container */ |
||
21 | private $container; |
||
22 | |||
23 | /** |
||
24 | * @param AbstractModule $module Binding module |
||
25 | * |
||
26 | * @throws AnnotationException |
||
27 | */ |
||
28 | public function __construct(AbstractModule $module, string $classDir) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Wakeup |
||
41 | */ |
||
42 | public function __wakeup() |
||
49 | } |
||
50 | } |
||
51 | ); |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Build an object graph with give constructor parameters |
||
56 | * |
||
57 | * @param string $class class name |
||
58 | * @param array<int, mixed> $params construct parameters |
||
59 | * |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function newInstanceArgs(string $class, array $params) |
||
67 |