Completed
Push — master ( 4bb4eb...402013 )
by Arthur
03:35
created

Type::getValues()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Arthem\GraphQLMapper\Mapping;
4
5
class Type extends FieldContainer
6
{
7
    /**
8
     * @var string
9
     */
10
    private $extends;
11
12
    /**
13
     * @var array
14
     */
15
    private $values;
16
17
    /**
18
     * @return string
19
     */
20
    public function getExtends()
21
    {
22
        return $this->extends;
23
    }
24
25
    /**
26
     * @param string $extends
27
     * @return $this
28
     */
29
    public function setExtends($extends)
30
    {
31
        $this->extends = $extends;
32
33
        return $this;
34
    }
35
36
    /**
37
     * @return array
38
     */
39
    public function getValues()
40
    {
41
        return $this->values;
42
    }
43
44
    /**
45
     * @param array $values
46
     * @return $this
47
     */
48
    public function setValues(array $values)
49
    {
50
        $this->values = $values;
51
        $this->setInternalType('EnumType');
52
53
        return $this;
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function toMapping()
60
    {
61
        $mapping = parent::toMapping();
62
63
        $mapping['extends'] = $this->extends;
64
        $mapping['values'] = $this->values;
65
66
        return $mapping;
67
    }
68
}
69