Completed
Pull Request — master (#5)
by Yonel Ceruto
10:19 queued 23s
created

ExecutableDefinitionTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 48
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getResolver() 0 3 1
A setComplexity() 0 5 1
A setResolver() 0 5 1
A getComplexity() 0 3 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\Definition\Traits;
12
13
/**
14
 * Trait ExecutableDefinitionTrait
15
 */
16
trait ExecutableDefinitionTrait
17
{
18
    use DefinitionTrait;
19
    use ArgumentAwareTrait;
20
    use DeprecateTrait;
21
    use TypeAwareDefinitionTrait;
22
    use NodeAwareDefinitionTrait;
23
24
    /**
25
     * @var string
26
     */
27
    protected $resolver;
28
29 21
    /**
30
     * @var string
31 21
     */
32
    protected $complexity;
33
34
    /**
35
     * @return null|string
36
     */
37
    public function getResolver(): ?string
38
    {
39 21
        return $this->resolver;
40
    }
41 21
42
    /**
43 21
     * @param null|string $resolver
44
     *
45
     * @return $this
46
     */
47
    public function setResolver(?string $resolver)
48
    {
49
        $this->resolver = $resolver;
50
51
        return $this;
52
    }
53
54
    public function getComplexity(): ?string
55
    {
56
        return $this->complexity;
57
    }
58
59
    public function setComplexity(?string $complexity): self
60
    {
61
        $this->complexity = $complexity;
62
63
        return $this;
64
    }
65
}
66