Passed
Push — master ( e52344...df819b )
by Rafael
09:21
created

EnumValueDefinition::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 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;
12
13
use Ynlo\GraphQLBundle\Definition\Traits\DefinitionTrait;
14
use Ynlo\GraphQLBundle\Definition\Traits\DeprecateTrait;
15
16
/**
17
 * EnumValueDefinition
18
 */
19
class EnumValueDefinition implements
20
    DefinitionInterface,
21
    DeprecateInterface
22
{
23
    use DefinitionTrait;
24
    use DeprecateTrait;
25
26
    /**
27
     * @var mixed
28
     */
29
    protected $value;
30
31
    /**
32
     * @return mixed
33
     */
34 1
    public function getValue()
35
    {
36 1
        return $this->value;
37
    }
38
39
    /**
40
     * @param mixed $value
41
     */
42 1
    public function setValue($value)
43
    {
44 1
        $this->value = $value;
45 1
    }
46
}
47