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

Outlet::getId()   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 Outlet extends Model
8
{
9
    protected $id = null;
10
11
    protected $type = null;
12
13
    protected $name = null;
14
15
    protected $description = null;
16
17
    protected $shopId = null;
18
19
    protected $shopName = null;
20
21
    protected $phone = null;
22
23
    protected $schedules = null;
24
25
    protected $contactsPage = null;
26
27
    protected $geo = null;
28
29
    protected $country = null;
30
31
    protected $localityName = null;
32
33
    protected $thoroughfareName = null;
34
35
    protected $premiseNumber = null;
36
37
    protected $building = null;
38
39
    protected $block = null;
40
41
    protected $officeNumber = null;
42
43
    // @? !!!
44
    protected $offer = null;
45
46
    protected $mappingClasses = [
47
        'phone' => 'Yandex\Market\Content\Models\Phone',
48
        'schedules' => 'Yandex\Market\Content\Models\Schedules',
49
        'geo' => 'Yandex\Market\Content\Models\Geo',
50
        'offer' => 'Yandex\Market\Content\Models\Offer'
51
    ];
52
53
    protected $propNameMap = [
54
        'pointId' => 'id',
55
        'pointType' => 'type',
56
        'pointName' => 'name',
57
        'pointDescription' => 'description',
58
        'schedule' => 'schedules'
59
    ];
60
61
    /**
62
     * Retrieve the id property
63
     *
64
     * @return int|null
65
     */
66 5
    public function getId()
67
    {
68 5
        return $this->id;
69
    }
70
71
    /**
72
     * Retrieve the type property
73
     *
74
     * @return string|null
75
     */
76 5
    public function getType()
77
    {
78 5
        return $this->type;
79
    }
80
81
    /**
82
     * Retrieve the name property
83
     *
84
     * @return string|null
85
     */
86 5
    public function getName()
87
    {
88 5
        return $this->name;
89
    }
90
91
    /**
92
     * Retrieve the description property
93
     *
94
     * @return string|null
95
     */
96
    public function getDescription()
97
    {
98
        return $this->description;
99
    }
100
101
    /**
102
     * Retrieve the shopId property
103
     *
104
     * @return int|null
105
     */
106 5
    public function getShopId()
107
    {
108 5
        return $this->shopId;
109
    }
110
111
    /**
112
     * Retrieve the shopName property
113
     *
114
     * @return string|null
115
     */
116 1
    public function getShopName()
117
    {
118 1
        return $this->shopName;
119
    }
120
121
    /**
122
     * Retrieve the phone property
123
     *
124
     * @return Phone|null
125
     */
126 5
    public function getPhone()
127
    {
128 5
        return $this->phone;
129
    }
130
131
    /**
132
     * Retrieve the schedules property
133
     *
134
     * @return Schedules|null
135
     */
136 5
    public function getSchedules()
137
    {
138 5
        return $this->schedules;
139
    }
140
141
    /**
142
     * Retrieve the contactsPage property
143
     *
144
     * @return string|null
145
     */
146
    public function getContactsPage()
147
    {
148
        return $this->contactsPage;
149
    }
150
151
    /**
152
     * Retrieve the geo property
153
     *
154
     * @return Geo|null
155
     */
156 5
    public function getGeo()
157
    {
158 5
        return $this->geo;
159
    }
160
161
    /**
162
     * Retrieve the country property
163
     *
164
     * @return string|null
165
     */
166
    public function getCountry()
167
    {
168
        return $this->country;
169
    }
170
171
    /**
172
     * Retrieve the localityName property
173
     *
174
     * @return string|null
175
     */
176 5
    public function getLocalityName()
177
    {
178 5
        return $this->localityName;
179
    }
180
181
    /**
182
     * Retrieve the thoroughfareName property
183
     *
184
     * @return string|null
185
     */
186 5
    public function getThoroughfareName()
187
    {
188 5
        return $this->thoroughfareName;
189
    }
190
191
    /**
192
     * Retrieve the premiseNumber property
193
     *
194
     * @return string|null
195
     */
196 4
    public function getPremiseNumber()
197
    {
198 4
        return $this->premiseNumber;
199
    }
200
201
    /**
202
     * Retrieve the building property
203
     *
204
     * @return string|null
205
     */
206 1
    public function getBuilding()
207
    {
208 1
        return $this->building;
209
    }
210
211
    /**
212
     * Retrieve the block property
213
     *
214
     * @return string|null
215
     */
216 1
    public function getBlock()
217
    {
218 1
        return $this->block;
219
    }
220
221
    /**
222
     * Retrieve the officeNumber property
223
     *
224
     * @return string|null
225
     */
226
    public function getOfficeNumber()
227
    {
228
        return $this->officeNumber;
229
    }
230
231
    /**
232
     * Retrieve the offer property
233
     *
234
     * @return Offer|null
235
     */
236 1
    public function getOffer()
237
    {
238 1
        return $this->offer;
239
    }
240
}
241