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

ModelInfo::getMedia()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Common\Model;
6
7
class ModelInfo extends Model
8
{
9
    protected $id = null;
10
11
    protected $offersCount = null;
12
13
    protected $type = null;
14
15
    protected $name = null;
16
17
    protected $category = null;
18
19
    protected $prices = null;
20
21
    protected $photoUrl = null;
22
23
    protected $vendor = null;
24
25
    protected $rating = null;
26
27
    protected $media = null;
28
29
    protected $facts = null;
30
31
    protected $mappingClasses = [
32
        'category' => 'Yandex\Market\Content\Models\Category',
33
        'prices' => 'Yandex\Market\Content\Models\Prices',
34
        'vendor' => 'Yandex\Market\Content\Models\Vendor',
35
        'rating' => 'Yandex\Market\Content\Models\Rating',
36
        'media' => 'Yandex\Market\Content\Models\Media',
37
        'facts' => 'Yandex\Market\Content\Models\Facts'
38
    ];
39
40
    protected $propNameMap = [
41
        'offerCount' => 'offersCount',
42
        'price' => 'prices',
43
        'photo' => 'photoUrl'
44
    ];
45
46
    /**
47
     * Retrieve the id property
48
     *
49
     * @return int|null
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * Retrieve the offersCount property
58
     *
59
     * @return int|null
60
     */
61
    public function getOffersCount()
62
    {
63
        return $this->offersCount;
64
    }
65
66
    /**
67
     * Retrieve the type property
68
     *
69
     * @return string|null
70
     */
71
    public function getType()
72
    {
73
        return $this->type;
74
    }
75
76
    /**
77
     * Retrieve the name property
78
     *
79
     * @return string|null
80
     */
81
    public function getName()
82
    {
83
        return $this->name;
84
    }
85
86
    /**
87
     * Retrieve the category property
88
     *
89
     * @return Category|null
90
     */
91
    public function getCategory()
92
    {
93
        return $this->category;
94
    }
95
96
    /**
97
     * Retrieve the prices property
98
     *
99
     * @return Prices|null
100
     */
101
    public function getPrices()
102
    {
103
        return $this->prices;
104
    }
105
106
    /**
107
     * Retrieve the photoUrl property
108
     *
109
     * @return string|null
110
     */
111
    public function getPhotoUrl()
112
    {
113
        return $this->photoUrl;
114
    }
115
116
    /**
117
     * Retrieve the vendor property
118
     *
119
     * @return Vendor|null
120
     */
121
    public function getVendor()
122
    {
123
        return $this->vendor;
124
    }
125
126
    /**
127
     * Retrieve the rating property
128
     *
129
     * @return Rating|null
130
     */
131
    public function getRating()
132
    {
133
        return $this->rating;
134
    }
135
136
    /**
137
     * Retrieve the media property
138
     *
139
     * @return Media|null
140
     */
141
    public function getMedia()
142
    {
143
        return $this->media;
144
    }
145
146
    /**
147
     * Retrieve the facts property
148
     *
149
     * @return Facts|null
150
     */
151
    public function getFacts()
152
    {
153
        return $this->facts;
154
    }
155
}
156