Total Complexity | 3 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | abstract class AbstractEntityConnectionField extends AbstractField |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @return AbstractType |
||
23 | */ |
||
24 | abstract protected function getEntityType(); |
||
25 | |||
26 | /** |
||
27 | * @param ResolveContext $context |
||
28 | * |
||
29 | * @return Page |
||
30 | */ |
||
31 | abstract protected function createPage(ResolveContext $context); |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function getType() |
||
37 | { |
||
38 | return Connection::connectionDefinition($this->getEntityType()); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | public function build(FieldConfig $config) |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function resolve($value, array $args, ResolveInfo $info) |
||
66 |