Completed
Pull Request — master (#139)
by
unknown
10:24
created

Region::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
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 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class Region extends Model
8
{
9
10
    protected $id = null;
11
12
    protected $name = null;
13
14
    protected $type = null;
15
16
    protected $parent = null;
17
18
    protected $mappingClasses = [
19
        'parent' => 'Yandex\Market\Partner\Models\Region'
20
    ];
21
22
    protected $propNameMap = [];
23
24
    /**
25
     * Retrieve the id property
26
     *
27
     * @return int|null
28
     */
29
    public function getId()
30
    {
31
        return $this->id;
32
    }
33
34
    /**
35
     * Set the id property
36
     *
37
     * @param int $id
38
     * @return $this
39
     */
40
    public function setId($id)
41
    {
42
        $this->id = $id;
43
        return $this;
44
    }
45
46
    /**
47
     * Retrieve the name property
48
     *
49
     * @return string|null
50
     */
51
    public function getName()
52
    {
53
        return $this->name;
54
    }
55
56
    /**
57
     * Set the name property
58
     *
59
     * @param string $name
60
     * @return $this
61
     */
62
    public function setName($name)
63
    {
64
        $this->name = $name;
65
        return $this;
66
    }
67
68
    /**
69
     * Retrieve the type property
70
     *
71
     * @return string|null
72
     */
73
    public function getType()
74
    {
75
        return $this->type;
76
    }
77
78
    /**
79
     * Set the type property
80
     *
81
     * @param string $type
82
     * @return $this
83
     */
84
    public function setType($type)
85
    {
86
        $this->type = $type;
87
        return $this;
88
    }
89
90
    /**
91
     * Retrieve the parent property
92
     *
93
     * @return Region|null
94
     */
95
    public function getParent()
96
    {
97
        return $this->parent;
98
    }
99
100
    /**
101
     * Set the parent property
102
     *
103
     * @param Region $parent
104
     * @return $this
105
     */
106
    public function setParent($parent)
107
    {
108
        $this->parent = $parent;
109
        return $this;
110
    }
111
}
112