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 Image
14: */
15: class Image extends Base
16: {
17: /**
18: * @var int
19: */
20: protected $id;
21: /**
22: * @var int
23: */
24: protected $articleId;
25: /**
26: * @var int
27: */
28: protected $articleDetailId;
29: /**
30: * @var string
31: */
32: protected $description;
33: /**
34: * @var string
35: */
36: protected $path;
37: /**
38: * @var int
39: */
40: protected $main;
41: /**
42: * @var int
43: */
44: protected $position;
45: /**
46: * @var int
47: */
48: protected $width;
49: /**
50: * @var int
51: */
52: protected $height;
53: /**
54: * @var string
55: */
56: protected $relations;
57: /**
58: * @var string
59: */
60: protected $extension;
61: /**
62: * @var int
63: */
64: protected $parentId;
65: /**
66: * @var int
67: */
68: protected $mediaId;
69:
70: /**
71: * @return int
72: */
73: public function getId()
74: {
75: return $this->id;
76: }
77:
78: /**
79: * @param int $id
80: *
81: * @return Image
82: */
83: public function setId($id)
84: {
85: $this->id = $id;
86:
87: return $this;
88: }
89:
90: /**
91: * @return int
92: */
93: public function getArticleId()
94: {
95: return $this->articleId;
96: }
97:
98: /**
99: * @param int $articleId
100: *
101: * @return Image
102: */
103: public function setArticleId($articleId)
104: {
105: $this->articleId = $articleId;
106:
107: return $this;
108: }
109:
110: /**
111: * @return int
112: */
113: public function getArticleDetailId()
114: {
115: return $this->articleDetailId;
116: }
117:
118: /**
119: * @param int $articleDetailId
120: *
121: * @return Image
122: */
123: public function setArticleDetailId($articleDetailId)
124: {
125: $this->articleDetailId = $articleDetailId;
126:
127: return $this;
128: }
129:
130: /**
131: * @return string
132: */
133: public function getDescription()
134: {
135: return $this->description;
136: }
137:
138: /**
139: * @param string $description
140: *
141: * @return Image
142: */
143: public function setDescription($description)
144: {
145: $this->description = $description;
146:
147: return $this;
148: }
149:
150: /**
151: * @return string
152: */
153: public function getPath()
154: {
155: return $this->path;
156: }
157:
158: /**
159: * @param string $path
160: *
161: * @return Image
162: */
163: public function setPath($path)
164: {
165: $this->path = $path;
166:
167: return $this;
168: }
169:
170: /**
171: * @return int
172: */
173: public function getMain()
174: {
175: return $this->main;
176: }
177:
178: /**
179: * @param int $main
180: *
181: * @return Image
182: */
183: public function setMain($main)
184: {
185: $this->main = $main;
186:
187: return $this;
188: }
189:
190: /**
191: * @return int
192: */
193: public function getPosition()
194: {
195: return $this->position;
196: }
197:
198: /**
199: * @param int $position
200: *
201: * @return Image
202: */
203: public function setPosition($position)
204: {
205: $this->position = $position;
206:
207: return $this;
208: }
209:
210: /**
211: * @return int
212: */
213: public function getWidth()
214: {
215: return $this->width;
216: }
217:
218: /**
219: * @param int $width
220: *
221: * @return Image
222: */
223: public function setWidth($width)
224: {
225: $this->width = $width;
226:
227: return $this;
228: }
229:
230: /**
231: * @return int
232: */
233: public function getHeight()
234: {
235: return $this->height;
236: }
237:
238: /**
239: * @param int $height
240: *
241: * @return Image
242: */
243: public function setHeight($height)
244: {
245: $this->height = $height;
246:
247: return $this;
248: }
249:
250: /**
251: * @return string
252: */
253: public function getRelations()
254: {
255: return $this->relations;
256: }
257:
258: /**
259: * @param string $relations
260: *
261: * @return Image
262: */
263: public function setRelations($relations)
264: {
265: $this->relations = $relations;
266:
267: return $this;
268: }
269:
270: /**
271: * @return string
272: */
273: public function getExtension()
274: {
275: return $this->extension;
276: }
277:
278: /**
279: * @param string $extension
280: *
281: * @return Image
282: */
283: public function setExtension($extension)
284: {
285: $this->extension = $extension;
286:
287: return $this;
288: }
289:
290: /**
291: * @return int
292: */
293: public function getParentId()
294: {
295: return $this->parentId;
296: }
297:
298: /**
299: * @param int $parentId
300: *
301: * @return Image
302: */
303: public function setParentId($parentId)
304: {
305: $this->parentId = $parentId;
306:
307: return $this;
308: }
309:
310: /**
311: * @return int
312: */
313: public function getMediaId()
314: {
315: return $this->mediaId;
316: }
317:
318: /**
319: * @param int $mediaId
320: *
321: * @return Image
322: */
323: public function setMediaId($mediaId)
324: {
325: $this->mediaId = $mediaId;
326:
327: return $this;
328: }
329: }
330: