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

ExecutableDefinitionTrait::setComplexity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 0
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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