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

Item::setOfferName()   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 5
cp 0
rs 9.4286
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 Item extends Model
8
{
9
10
    protected $feedId = null;
11
12
    protected $offerId = null;
13
14
    protected $feedCategoryId = null;
15
16
    protected $offerName = null;
17
18
    protected $price = null;
19
20
    protected $count = null;
21
22
    protected $delivery = null;
23
24
    protected $mappingClasses = [];
25
26
    protected $propNameMap = [];
27
28
    /**
29
     * Retrieve the feedId property
30
     *
31
     * @return int|null
32
     */
33
    public function getFeedId()
34
    {
35
        return $this->feedId;
36
    }
37
38
    /**
39
     * Set the feedId property
40
     *
41
     * @param int $feedId
42
     * @return $this
43
     */
44
    public function setFeedId($feedId)
45
    {
46
        $this->feedId = $feedId;
47
        return $this;
48
    }
49
50
    /**
51
     * Retrieve the offerId property
52
     *
53
     * @return string|null
54
     */
55
    public function getOfferId()
56
    {
57
        return $this->offerId;
58
    }
59
60
    /**
61
     * Set the offerId property
62
     *
63
     * @param string $offerId
64
     * @return $this
65
     */
66
    public function setOfferId($offerId)
67
    {
68
        $this->offerId = $offerId;
69
        return $this;
70
    }
71
72
    /**
73
     * Retrieve the feedCategoryId property
74
     *
75
     * @return string|null
76
     */
77
    public function getFeedCategoryId()
78
    {
79
        return $this->feedCategoryId;
80
    }
81
82
    /**
83
     * Set the feedCategoryId property
84
     *
85
     * @param string $feedCategoryId
86
     * @return $this
87
     */
88
    public function setFeedCategoryId($feedCategoryId)
89
    {
90
        $this->feedCategoryId = $feedCategoryId;
91
        return $this;
92
    }
93
94
    /**
95
     * Retrieve the offerName property
96
     *
97
     * @return string|null
98
     */
99
    public function getOfferName()
100
    {
101
        return $this->offerName;
102
    }
103
104
    /**
105
     * Set the offerName property
106
     *
107
     * @param string $offerName
108
     * @return $this
109
     */
110
    public function setOfferName($offerName)
111
    {
112
        $this->offerName = $offerName;
113
        return $this;
114
    }
115
116
    /**
117
     * Retrieve the price property
118
     *
119
     * @return int|null
120
     */
121
    public function getPrice()
122
    {
123
        return $this->price;
124
    }
125
126
    /**
127
     * Set the price property
128
     *
129
     * @param int $price
130
     * @return $this
131
     */
132
    public function setPrice($price)
133
    {
134
        $this->price = $price;
135
        return $this;
136
    }
137
138
    /**
139
     * Retrieve the count property
140
     *
141
     * @return int|null
142
     */
143
    public function getCount()
144
    {
145
        return $this->count;
146
    }
147
148
    /**
149
     * Set the count property
150
     *
151
     * @param int $count
152
     * @return $this
153
     */
154
    public function setCount($count)
155
    {
156
        $this->count = $count;
157
        return $this;
158
    }
159
160
    /**
161
     * Retrieve the delivery property
162
     *
163
     * @return bool|null
164
     */
165
    public function getDelivery()
166
    {
167
        return $this->delivery;
168
    }
169
170
    /**
171
     * Set the delivery property
172
     *
173
     * @param bool $delivery
174
     * @return $this
175
     */
176
    public function setDelivery($delivery)
177
    {
178
        $this->delivery = $delivery;
179
        return $this;
180
    }
181
}
182