Completed
Push — master ( 5db45c...f208af )
by Arthur
02:39
created

Type::setFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
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 $resolveConfig;
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 getResolveConfig()
40
    {
41
        return $this->resolveConfig;
42
    }
43
44
    /**
45
     * @param array $resolveConfig
46
     * @return $this
47
     */
48
    public function setResolveConfig($resolveConfig)
49
    {
50
        $this->resolveConfig = $resolveConfig;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return array
57
     */
58
    public function toMapping()
59
    {
60
        $mapping = parent::toMapping();
61
62
        $mapping['extends'] = $this->extends;
63
64
        return $mapping;
65
    }
66
}
67