Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class RootQuery extends ObjectType |
||
9 | { |
||
10 | /** |
||
11 | * RootQuery constructor. |
||
12 | * |
||
13 | * @param \Bakery\Support\TypeRegistry $registry |
||
14 | * @param array $fields |
||
15 | */ |
||
16 | public function __construct(TypeRegistry $registry, array $fields) |
||
17 | { |
||
18 | $this->fields = $fields; |
||
19 | |||
20 | parent::__construct($registry); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Get the fields for the type. |
||
25 | * |
||
26 | * @return Collection |
||
27 | */ |
||
28 | public function getFields(): Collection |
||
34 | }); |
||
35 | } |
||
37 |