Passed
Push — master ( c39fb6...9e9a0d )
by Rafael
04:42
created

AbstractGraphQLExtension   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 71
ccs 0
cts 26
cp 0
rs 10
c 0
b 0
f 0
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A postValidation() 0 2 1
A postPersist() 0 2 1
A prePersist() 0 2 1
A preValidate() 0 2 1
A preDelete() 0 2 1
A postDelete() 0 2 1
A preUpdate() 0 2 1
A postUpdate() 0 2 1
A configureQuery() 0 2 1
1
<?php
2
/*******************************************************************************
3
 *  This file is part of the GraphQL Bundle package.
4
 *
5
 *  (c) YnloUltratech <[email protected]>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 ******************************************************************************/
10
11
namespace Ynlo\GraphQLBundle\Extension;
12
13
use Doctrine\ORM\QueryBuilder;
14
use Ynlo\GraphQLBundle\Model\NodeInterface;
15
use Ynlo\GraphQLBundle\Resolver\ResolverContext;
16
use Ynlo\GraphQLBundle\Validator\ConstraintViolationList;
17
18
/**
19
 * Base extension for all GraphQL extensions
20
 */
21
abstract class AbstractGraphQLExtension implements GraphQLExtensionInterface
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function configureQuery(QueryBuilder $queryBuilder, $resolver, ResolverContext $context)
27
    {
28
        // TODO: Implement configureQuery() method.
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function preValidate(&$data, $resolver, ResolverContext $context)
35
    {
36
        // TODO: Implement preValidate() method.
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function postValidation($data, ConstraintViolationList $violations, $resolver, ResolverContext $context)
43
    {
44
        // TODO: Implement postValidation() method.
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function prePersist(NodeInterface $node, $resolver, ResolverContext $context)
51
    {
52
        // TODO: Implement prePersist() method.
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function postPersist(NodeInterface $node, $resolver, ResolverContext $context)
59
    {
60
        // TODO: Implement postPersist() method.
61
    }
62
63
    /**
64
     * {@inheritdoc}
65
     */
66
    public function preUpdate(NodeInterface $node, $resolver, ResolverContext $context)
67
    {
68
        // TODO: Implement preUpdate() method.
69
    }
70
71
    /**
72
     * {@inheritdoc}
73
     */
74
    public function postUpdate(NodeInterface $node, $resolver, ResolverContext $context)
75
    {
76
        // TODO: Implement postUpdate() method.
77
    }
78
79
    /**
80
     * {@inheritdoc}
81
     */
82
    public function preDelete(NodeInterface $node, $resolver, ResolverContext $context)
83
    {
84
        // TODO: Implement preDelete() method.
85
    }
86
87
    /**
88
     * {@inheritdoc}
89
     */
90
    public function postDelete(NodeInterface $node, $resolver, ResolverContext $context)
91
    {
92
        // TODO: Implement postDelete() method.
93
    }
94
}
95