1: <?php
2: /**
3: * LeadCommerce\Shopware\SDK\Entity
4: *
5: * Copyright 2016 LeadCommerce
6: *
7: * @author Alexander Mahrt <amahrt@leadcommerce.de>
8: * @copyright 2016 LeadCommerce <amahrt@leadcommerce.de>
9: */
10: namespace LeadCommerce\Shopware\SDK\Entity;
11:
12: /**
13: * Class Price
14: */
15: class Price extends Base
16: {
17: /**
18: * @var string
19: */
20: protected $customerGroupKey;
21: /**
22: * @var CustomerGroup
23: */
24: protected $customerGroup;
25: /**
26: * @var int
27: */
28: protected $articleDetailsId;
29: /**
30: * @var int
31: */
32: protected $articleId;
33: /**
34: * @var int
35: */
36: protected $id;
37: /**
38: * @var int
39: */
40: protected $from;
41: /**
42: * @var string
43: */
44: protected $to;
45: /**
46: * @var float
47: */
48: protected $price;
49: /**
50: * @var float
51: */
52: protected $pseudoPrice;
53: /**
54: * @var float
55: */
56: protected $basePrice;
57: /**
58: * @var float
59: */
60: protected $percent;
61:
62: /**
63: * @return string
64: */
65: public function getCustomerGroupKey()
66: {
67: return $this->customerGroupKey;
68: }
69:
70: /**
71: * @param string $customerGroupKey
72: *
73: * @return Price
74: */
75: public function setCustomerGroupKey($customerGroupKey)
76: {
77: $this->customerGroupKey = $customerGroupKey;
78:
79: return $this;
80: }
81:
82: /**
83: * @return CustomerGroup
84: */
85: public function getCustomerGroup()
86: {
87: return $this->customerGroup;
88: }
89:
90: /**
91: * @param CustomerGroup $customerGroup
92: *
93: * @return Price
94: */
95: public function setCustomerGroup($customerGroup)
96: {
97: $this->customerGroup = $customerGroup;
98:
99: return $this;
100: }
101:
102: /**
103: * @return int
104: */
105: public function getArticleDetailsId()
106: {
107: return $this->articleDetailsId;
108: }
109:
110: /**
111: * @param int $articleDetailsId
112: *
113: * @return Price
114: */
115: public function setArticleDetailsId($articleDetailsId)
116: {
117: $this->articleDetailsId = $articleDetailsId;
118:
119: return $this;
120: }
121:
122: /**
123: * @return int
124: */
125: public function getArticleId()
126: {
127: return $this->articleId;
128: }
129:
130: /**
131: * @param int $articleId
132: *
133: * @return Price
134: */
135: public function setArticleId($articleId)
136: {
137: $this->articleId = $articleId;
138:
139: return $this;
140: }
141:
142: /**
143: * @return int
144: */
145: public function getId()
146: {
147: return $this->id;
148: }
149:
150: /**
151: * @param int $id
152: *
153: * @return Price
154: */
155: public function setId($id)
156: {
157: $this->id = $id;
158:
159: return $this;
160: }
161:
162: /**
163: * @return int
164: */
165: public function getFrom()
166: {
167: return $this->from;
168: }
169:
170: /**
171: * @param int $from
172: *
173: * @return Price
174: */
175: public function setFrom($from)
176: {
177: $this->from = $from;
178:
179: return $this;
180: }
181:
182: /**
183: * @return string
184: */
185: public function getTo()
186: {
187: return $this->to;
188: }
189:
190: /**
191: * @param string $to
192: *
193: * @return Price
194: */
195: public function setTo($to)
196: {
197: $this->to = $to;
198:
199: return $this;
200: }
201:
202: /**
203: * @return float
204: */
205: public function getPrice()
206: {
207: return $this->price;
208: }
209:
210: /**
211: * @param float $price
212: *
213: * @return Price
214: */
215: public function setPrice($price)
216: {
217: $this->price = $price;
218:
219: return $this;
220: }
221:
222: /**
223: * @return float
224: */
225: public function getPseudoPrice()
226: {
227: return $this->pseudoPrice;
228: }
229:
230: /**
231: * @param float $pseudoPrice
232: *
233: * @return Price
234: */
235: public function setPseudoPrice($pseudoPrice)
236: {
237: $this->pseudoPrice = $pseudoPrice;
238:
239: return $this;
240: }
241:
242: /**
243: * @return float
244: */
245: public function getBasePrice()
246: {
247: return $this->basePrice;
248: }
249:
250: /**
251: * @param float $basePrice
252: *
253: * @return Price
254: */
255: public function setBasePrice($basePrice)
256: {
257: $this->basePrice = $basePrice;
258:
259: return $this;
260: }
261:
262: /**
263: * @return float
264: */
265: public function getPercent()
266: {
267: return $this->percent;
268: }
269:
270: /**
271: * @param float $percent
272: *
273: * @return Price
274: */
275: public function setPercent($percent)
276: {
277: $this->percent = $percent;
278:
279: return $this;
280: }
281: }
282: