GeoRegion   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 62
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getParentId() 0 4 1
A getType() 0 4 1
A getName() 0 4 1
A getChildrenCount() 0 4 1
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Common\Model;
6
7
class GeoRegion extends Model
8
{
9
    protected $id = null;
10
11
    protected $parentId = null;
12
13
    protected $type = null;
14
15
    protected $name = null;
16
17
    protected $childrenCount = null;
18
19
    /**
20
     * Retrieve the id property
21
     *
22
     * @return int|null
23
     */
24 4
    public function getId()
25
    {
26 4
        return $this->id;
27
    }
28
29
    /**
30
     * Retrieve the parentId property
31
     *
32
     * @return int|null
33
     */
34 4
    public function getParentId()
35
    {
36 4
        return $this->parentId;
37
    }
38
39
    /**
40
     * Retrieve the type property
41
     *
42
     * @return string|null
43
     */
44 4
    public function getType()
45
    {
46 4
        return $this->type;
47
    }
48
49
    /**
50
     * Retrieve the name property
51
     *
52
     * @return string|null
53
     */
54 4
    public function getName()
55
    {
56 4
        return $this->name;
57
    }
58
59
    /**
60
     * Retrieve the childrenCount property
61
     *
62
     * @return int|null
63
     */
64 3
    public function getChildrenCount()
65
    {
66 3
        return $this->childrenCount;
67
    }
68
}
69