Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class FactoryHydrator implements HydratorInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Hydrates/returns an object based on a PHP array and a GraphQL type. |
||
19 | * |
||
20 | * @param mixed[] $data |
||
21 | * @param InputObjectType $type |
||
22 | * @return object |
||
23 | * @throws CannotHydrateException |
||
24 | */ |
||
25 | public function hydrate(array $data, InputObjectType $type) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Whether this hydrate can hydrate the passed data. |
||
35 | * |
||
36 | * @param mixed[] $data |
||
37 | * @param InputObjectType $type |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function canHydrate(array $data, InputObjectType $type): bool |
||
45 |