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 CustomerGroup
14: */
15: class CustomerGroup extends Base
16: {
17: /**
18: * @var int
19: */
20: protected $id;
21: /**
22: * @var string
23: */
24: protected $key;
25: /**
26: * @var string
27: */
28: protected $name;
29: /**
30: * @var bool
31: */
32: protected $tax;
33: /**
34: * @var bool
35: */
36: protected $taxInput;
37: /**
38: * @var bool
39: */
40: protected $mode;
41: /**
42: * @var float
43: */
44: protected $discount;
45: /**
46: * @var float
47: */
48: protected $minimumOrder;
49: /**
50: * @var float
51: */
52: protected $minimumOrderSurcharge;
53: /**
54: * @var float
55: */
56: protected $basePrice;
57: /**
58: * @var float
59: */
60: protected $percent;
61:
62: /**
63: * @return int
64: */
65: public function getId()
66: {
67: return $this->id;
68: }
69:
70: /**
71: * @param int $id
72: *
73: * @return CustomerGroup
74: */
75: public function setId($id)
76: {
77: $this->id = $id;
78:
79: return $this;
80: }
81:
82: /**
83: * @return string
84: */
85: public function getKey()
86: {
87: return $this->key;
88: }
89:
90: /**
91: * @param string $key
92: *
93: * @return CustomerGroup
94: */
95: public function setKey($key)
96: {
97: $this->key = $key;
98:
99: return $this;
100: }
101:
102: /**
103: * @return string
104: */
105: public function getName()
106: {
107: return $this->name;
108: }
109:
110: /**
111: * @param string $name
112: *
113: * @return CustomerGroup
114: */
115: public function setName($name)
116: {
117: $this->name = $name;
118:
119: return $this;
120: }
121:
122: /**
123: * @return bool
124: */
125: public function isTax()
126: {
127: return $this->tax;
128: }
129:
130: /**
131: * @param bool $tax
132: *
133: * @return CustomerGroup
134: */
135: public function setTax($tax)
136: {
137: $this->tax = $tax;
138:
139: return $this;
140: }
141:
142: /**
143: * @return bool
144: */
145: public function isTaxInput()
146: {
147: return $this->taxInput;
148: }
149:
150: /**
151: * @param bool $taxInput
152: *
153: * @return CustomerGroup
154: */
155: public function setTaxInput($taxInput)
156: {
157: $this->taxInput = $taxInput;
158:
159: return $this;
160: }
161:
162: /**
163: * @return bool
164: */
165: public function isMode()
166: {
167: return $this->mode;
168: }
169:
170: /**
171: * @param bool $mode
172: *
173: * @return CustomerGroup
174: */
175: public function setMode($mode)
176: {
177: $this->mode = $mode;
178:
179: return $this;
180: }
181:
182: /**
183: * @return float
184: */
185: public function getDiscount()
186: {
187: return $this->discount;
188: }
189:
190: /**
191: * @param float $discount
192: *
193: * @return CustomerGroup
194: */
195: public function setDiscount($discount)
196: {
197: $this->discount = $discount;
198:
199: return $this;
200: }
201:
202: /**
203: * @return float
204: */
205: public function getMinimumOrder()
206: {
207: return $this->minimumOrder;
208: }
209:
210: /**
211: * @param float $minimumOrder
212: *
213: * @return CustomerGroup
214: */
215: public function setMinimumOrder($minimumOrder)
216: {
217: $this->minimumOrder = $minimumOrder;
218:
219: return $this;
220: }
221:
222: /**
223: * @return float
224: */
225: public function getMinimumOrderSurcharge()
226: {
227: return $this->minimumOrderSurcharge;
228: }
229:
230: /**
231: * @param float $minimumOrderSurcharge
232: *
233: * @return CustomerGroup
234: */
235: public function setMinimumOrderSurcharge($minimumOrderSurcharge)
236: {
237: $this->minimumOrderSurcharge = $minimumOrderSurcharge;
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 CustomerGroup
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 CustomerGroup
274: */
275: public function setPercent($percent)
276: {
277: $this->percent = $percent;
278:
279: return $this;
280: }
281: }
282: