Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class GraphResolver |
||
8 | { |
||
9 | private GraphCollection $graphCollection; |
||
10 | |||
11 | 21 | public function __construct() |
|
12 | { |
||
13 | 21 | $this->graphCollection = new GraphCollection(); |
|
14 | 21 | } |
|
15 | |||
16 | 21 | public function register(Graph $graph): void |
|
17 | { |
||
18 | 21 | $this->graphCollection->add($graph); |
|
19 | 21 | } |
|
20 | |||
21 | 21 | public function resolve(object $object, string $graph = 'default'): Graph |
|
24 | } |
||
25 | } |
||
26 |