Completed
Pull Request — master (#139)
by
unknown
04:18
created

Shop::getGradeTotal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Common\Model;
6
7
class Shop extends Model
8
{
9
    protected $id = null;
10
11
    protected $name = null;
12
13
    protected $shopName = null;
14
15
    protected $createdAt = null;
16
17
    protected $type = null;
18
19
    protected $status = null;
20
21
    protected $url = null;
22
23
    protected $gradeTotal = null;
24
25
    protected $rating = null;
26
27
    protected $factAddress = null;
28
29
    protected $juridicalAddress = null;
30
31
    protected $ogrn = null;
32
33
    /**
34
     * Additional properties available during another requests.
35
     */
36
    protected $regionId = null;
37
38
    /**
39
     * Retrieve the id property
40
     *
41
     * @return int|null
42
     */
43 3
    public function getId()
44
    {
45 3
        return $this->id;
46
    }
47
48
    /**
49
     * Retrieve the name property
50
     *
51
     * @return string|null
52
     */
53 3
    public function getName()
54
    {
55 3
        return $this->name;
56
    }
57
58
    /**
59
     * Retrieve the shopName property
60
     *
61
     * @return string|null
62
     */
63 2
    public function getShopName()
64
    {
65 2
        return $this->shopName;
66
    }
67
68
    /**
69
     * Retrieve the createdAt property
70
     *
71
     * @return string|null
72
     */
73
    public function getCreatedAt()
74
    {
75
        return $this->createdAt;
76
    }
77
78
    /**
79
     * Retrieve the type property
80
     *
81
     * @return string|null
82
     */
83 2
    public function getType()
84
    {
85 2
        return $this->type;
86
    }
87
88
    /**
89
     * Retrieve the status property
90
     *
91
     * @return string|null
92
     */
93 1
    public function getStatus()
94
    {
95 1
        return $this->status;
96
    }
97
98
    /**
99
     * Retrieve the url property
100
     *
101
     * @return string|null
102
     */
103 2
    public function getUrl()
104
    {
105 2
        return $this->url;
106
    }
107
108
    /**
109
     * Retrieve the gradeTotal property
110
     *
111
     * @return int|null
112
     */
113 2
    public function getGradeTotal()
114
    {
115 2
        return $this->gradeTotal;
116
    }
117
118
    /**
119
     * Retrieve the rating property
120
     *
121
     * @return float|null
122
     */
123 2
    public function getRating()
124
    {
125 2
        return $this->rating;
126
    }
127
128
    /**
129
     * Retrieve the factAddress property
130
     *
131
     * @return string|null
132
     */
133 2
    public function getFactAddress()
134
    {
135 2
        return $this->factAddress;
136
    }
137
138
    /**
139
     * Retrieve the juridicalAddress property
140
     *
141
     * @return string|null
142
     */
143 2
    public function getJuridicalAddress()
144
    {
145 2
        return $this->juridicalAddress;
146
    }
147
148
    /**
149
     * Retrieve the ogrn property
150
     *
151
     * @return string|null
152
     */
153 2
    public function getOgrn()
154
    {
155 2
        return $this->ogrn;
156
    }
157
158
    /**
159
     * Retrieve the regionId property
160
     *
161
     * @note Property available during /shops request.
162
     *
163
     * @return int|null
164
     */
165 1
    public function getRegionId()
166
    {
167 1
        return $this->regionId;
168
    }
169
}
170