Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | abstract class AbstractDeleteEntityField extends AbstractField |
||
19 | { |
||
20 | |||
21 | use ResolvesNodesTrait; |
||
22 | |||
23 | /** |
||
24 | * @param ResolveContext $context |
||
25 | * @return mixed |
||
26 | */ |
||
27 | abstract protected function deleteEntity(ResolveContext $context); |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | public function getType() |
||
33 | { |
||
34 | return new BooleanType(); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function getDescription() |
||
41 | { |
||
42 | return 'Deletes an existing entity.'; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function build(FieldConfig $config) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | public function resolve($value, array $args, ResolveInfo $info) |
||
65 |