Completed
Pull Request — master (#195)
by
unknown
08:54
created

Region::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
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 4
    public function getId()
30
    {
31 4
        return $this->id;
32
    }
33
34
    /**
35
     * Retrieve the name property
36
     *
37
     * @return string|null
38
     */
39 4
    public function getName()
40
    {
41 4
        return $this->name;
42
    }
43
44
    /**
45
     * Retrieve the type property
46
     *
47
     * @return string|null
48
     */
49 4
    public function getType()
50
    {
51 4
        return $this->type;
52
    }
53
54
    /**
55
     * Retrieve the parent property
56
     *
57
     * @return Region|null
58
     */
59 4
    public function getParent()
60
    {
61 4
        return $this->parent;
62
    }
63
}
64