Overview

Namespaces

  • LeadCommerce
    • Shopware
      • SDK
        • Entity
        • Exception
        • Query
        • Util

Classes

  • LeadCommerce\Shopware\SDK\Entity\Address
  • LeadCommerce\Shopware\SDK\Entity\Area
  • LeadCommerce\Shopware\SDK\Entity\Article
  • LeadCommerce\Shopware\SDK\Entity\ArticleAttribute
  • LeadCommerce\Shopware\SDK\Entity\ArticleDetail
  • LeadCommerce\Shopware\SDK\Entity\Base
  • LeadCommerce\Shopware\SDK\Entity\Billing
  • LeadCommerce\Shopware\SDK\Entity\BillingAttribute
  • LeadCommerce\Shopware\SDK\Entity\Cache
  • LeadCommerce\Shopware\SDK\Entity\Category
  • LeadCommerce\Shopware\SDK\Entity\ConfiguratorGroup
  • LeadCommerce\Shopware\SDK\Entity\ConfiguratorOption
  • LeadCommerce\Shopware\SDK\Entity\ConfiguratorSet
  • LeadCommerce\Shopware\SDK\Entity\Country
  • LeadCommerce\Shopware\SDK\Entity\Currency
  • LeadCommerce\Shopware\SDK\Entity\CustomerAttribute
  • LeadCommerce\Shopware\SDK\Entity\CustomerGroup
  • LeadCommerce\Shopware\SDK\Entity\CustomerGroupSurcharge
  • LeadCommerce\Shopware\SDK\Entity\Debit
  • LeadCommerce\Shopware\SDK\Entity\Dispatch
  • LeadCommerce\Shopware\SDK\Entity\Document
  • LeadCommerce\Shopware\SDK\Entity\DocumentAttribute
  • LeadCommerce\Shopware\SDK\Entity\DocumentType
  • LeadCommerce\Shopware\SDK\Entity\Download
  • LeadCommerce\Shopware\SDK\Entity\Image
  • LeadCommerce\Shopware\SDK\Entity\Link
  • LeadCommerce\Shopware\SDK\Entity\Locale
  • LeadCommerce\Shopware\SDK\Entity\OrderAttribute
  • LeadCommerce\Shopware\SDK\Entity\OrderDetail
  • LeadCommerce\Shopware\SDK\Entity\OrderDetailAttribute
  • LeadCommerce\Shopware\SDK\Entity\OrderStatus
  • LeadCommerce\Shopware\SDK\Entity\PaymentData
  • LeadCommerce\Shopware\SDK\Entity\PaymentInstance
  • LeadCommerce\Shopware\SDK\Entity\Price
  • LeadCommerce\Shopware\SDK\Entity\PriceGroup
  • LeadCommerce\Shopware\SDK\Entity\PropertyGroup
  • LeadCommerce\Shopware\SDK\Entity\PropertyGroupAttribute
  • LeadCommerce\Shopware\SDK\Entity\PropertyGroupOption
  • LeadCommerce\Shopware\SDK\Entity\PropertyValue
  • LeadCommerce\Shopware\SDK\Entity\Related
  • LeadCommerce\Shopware\SDK\Entity\Shipping
  • LeadCommerce\Shopware\SDK\Entity\ShippingAttribute
  • LeadCommerce\Shopware\SDK\Entity\Shop
  • LeadCommerce\Shopware\SDK\Entity\Similar
  • LeadCommerce\Shopware\SDK\Entity\State
  • LeadCommerce\Shopware\SDK\Entity\Supplier
  • LeadCommerce\Shopware\SDK\Entity\Tax
  • LeadCommerce\Shopware\SDK\Entity\Translation
  • LeadCommerce\Shopware\SDK\Entity\Version
  • LeadCommerce\Shopware\SDK\Query\AddressQuery
  • LeadCommerce\Shopware\SDK\Query\ArticleQuery
  • LeadCommerce\Shopware\SDK\Query\Base
  • LeadCommerce\Shopware\SDK\Query\CacheQuery
  • LeadCommerce\Shopware\SDK\Query\CategoriesQuery
  • LeadCommerce\Shopware\SDK\Query\CountriesQuery
  • LeadCommerce\Shopware\SDK\Query\CustomerGroupsQuery
  • LeadCommerce\Shopware\SDK\Query\CustomerQuery
  • LeadCommerce\Shopware\SDK\Query\GenerateArticleImagesQuery
  • LeadCommerce\Shopware\SDK\Query\ManufacturersQuery
  • LeadCommerce\Shopware\SDK\Query\MediaQuery
  • LeadCommerce\Shopware\SDK\Query\OrdersQuery
  • LeadCommerce\Shopware\SDK\Query\PropertyGroupsQuery
  • LeadCommerce\Shopware\SDK\Query\ShopsQuery
  • LeadCommerce\Shopware\SDK\Query\TranslationsQuery
  • LeadCommerce\Shopware\SDK\Query\VariantsQuery
  • LeadCommerce\Shopware\SDK\Query\VersionQuery
  • LeadCommerce\Shopware\SDK\ShopwareClient
  • LeadCommerce\Shopware\SDK\Util\Constants

Exceptions

  • LeadCommerce\Shopware\SDK\Exception\MethodNotAllowedException
  • Overview
  • Namespace
  • Class
  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 Article
 14:  */
 15: class Article extends Base
 16: {
 17:     /**
 18:      * @var int
 19:      */
 20:     protected $id;
 21:     /**
 22:      * @var int
 23:      */
 24:     protected $mainDetailId;
 25:     /**
 26:      * @var int
 27:      */
 28:     protected $supplierId;
 29:     /**
 30:      * @var int
 31:      */
 32:     protected $taxId;
 33:     /**
 34:      * @var int
 35:      */
 36:     protected $priceGroupId;
 37:     /**
 38:      * @var int
 39:      */
 40:     protected $filterGroupId;
 41:     /**
 42:      * @var int
 43:      */
 44:     protected $configuratorSetId;
 45:     /**
 46:      * @var string
 47:      */
 48:     protected $name;
 49:     /**
 50:      * @var string
 51:      */
 52:     protected $description;
 53:     /**
 54:      * @var string
 55:      */
 56:     protected $descriptionLong;
 57:     /**
 58:      * @var string
 59:      */
 60:     protected $added;
 61:     /**
 62:      * @var bool
 63:      */
 64:     protected $active;
 65:     /**
 66:      * @var int
 67:      */
 68:     protected $pseudoSales;
 69:     /**
 70:      * @var bool
 71:      */
 72:     protected $highlight;
 73:     /**
 74:      * @var string
 75:      */
 76:     protected $keywords;
 77:     /**
 78:      * @var string
 79:      */
 80:     protected $metaTitle;
 81:     /**
 82:      * @var string
 83:      */
 84:     protected $changed;
 85:     /**
 86:      * @var bool
 87:      */
 88:     protected $priceGroupActive;
 89:     /**
 90:      * @var bool
 91:      */
 92:     protected $lastStock;
 93:     /**
 94:      * @var bool
 95:      */
 96:     protected $crossBundleLook;
 97:     /**
 98:      * @var bool
 99:      */
100:     protected $notification;
101:     /**
102:      * @var string
103:      */
104:     protected $template;
105:     /**
106:      * @var int
107:      */
108:     protected $mode;
109:     /**
110:      * @var string
111:      */
112:     protected $availableFrom;
113:     /**
114:      * @var string
115:      */
116:     protected $availableTo;
117:     /**
118:      * @var ArticleAttribute
119:      */
120:     protected $attribute;
121:     /**
122:      * @var Category[]
123:      */
124:     protected $categories;
125: 
126:     /**
127:      * @return int
128:      */
129:     public function getId()
130:     {
131:         return $this->id;
132:     }
133: 
134:     /**
135:      * @param int $id
136:      *
137:      * @return Article
138:      */
139:     public function setId($id)
140:     {
141:         $this->id = $id;
142: 
143:         return $this;
144:     }
145: 
146:     /**
147:      * @return int
148:      */
149:     public function getMainDetailId()
150:     {
151:         return $this->mainDetailId;
152:     }
153: 
154:     /**
155:      * @param int $mainDetailId
156:      *
157:      * @return Article
158:      */
159:     public function setMainDetailId($mainDetailId)
160:     {
161:         $this->mainDetailId = $mainDetailId;
162: 
163:         return $this;
164:     }
165: 
166:     /**
167:      * @return int
168:      */
169:     public function getSupplierId()
170:     {
171:         return $this->supplierId;
172:     }
173: 
174:     /**
175:      * @param int $supplierId
176:      *
177:      * @return Article
178:      */
179:     public function setSupplierId($supplierId)
180:     {
181:         $this->supplierId = $supplierId;
182: 
183:         return $this;
184:     }
185: 
186:     /**
187:      * @return int
188:      */
189:     public function getTaxId()
190:     {
191:         return $this->taxId;
192:     }
193: 
194:     /**
195:      * @param int $taxId
196:      *
197:      * @return Article
198:      */
199:     public function setTaxId($taxId)
200:     {
201:         $this->taxId = $taxId;
202: 
203:         return $this;
204:     }
205: 
206:     /**
207:      * @return int
208:      */
209:     public function getPriceGroupId()
210:     {
211:         return $this->priceGroupId;
212:     }
213: 
214:     /**
215:      * @param int $priceGroupId
216:      *
217:      * @return Article
218:      */
219:     public function setPriceGroupId($priceGroupId)
220:     {
221:         $this->priceGroupId = $priceGroupId;
222: 
223:         return $this;
224:     }
225: 
226:     /**
227:      * @return int
228:      */
229:     public function getFilterGroupId()
230:     {
231:         return $this->filterGroupId;
232:     }
233: 
234:     /**
235:      * @param int $filterGroupId
236:      *
237:      * @return Article
238:      */
239:     public function setFilterGroupId($filterGroupId)
240:     {
241:         $this->filterGroupId = $filterGroupId;
242: 
243:         return $this;
244:     }
245: 
246:     /**
247:      * @return int
248:      */
249:     public function getConfiguratorSetId()
250:     {
251:         return $this->configuratorSetId;
252:     }
253: 
254:     /**
255:      * @param int $configuratorSetId
256:      *
257:      * @return Article
258:      */
259:     public function setConfiguratorSetId($configuratorSetId)
260:     {
261:         $this->configuratorSetId = $configuratorSetId;
262: 
263:         return $this;
264:     }
265: 
266:     /**
267:      * @return string
268:      */
269:     public function getName()
270:     {
271:         return $this->name;
272:     }
273: 
274:     /**
275:      * @param string $name
276:      *
277:      * @return Article
278:      */
279:     public function setName($name)
280:     {
281:         $this->name = $name;
282: 
283:         return $this;
284:     }
285: 
286:     /**
287:      * @return string
288:      */
289:     public function getDescription()
290:     {
291:         return $this->description;
292:     }
293: 
294:     /**
295:      * @param string $description
296:      *
297:      * @return Article
298:      */
299:     public function setDescription($description)
300:     {
301:         $this->description = $description;
302: 
303:         return $this;
304:     }
305: 
306:     /**
307:      * @return string
308:      */
309:     public function getDescriptionLong()
310:     {
311:         return $this->descriptionLong;
312:     }
313: 
314:     /**
315:      * @param string $descriptionLong
316:      *
317:      * @return Article
318:      */
319:     public function setDescriptionLong($descriptionLong)
320:     {
321:         $this->descriptionLong = $descriptionLong;
322: 
323:         return $this;
324:     }
325: 
326:     /**
327:      * @return string
328:      */
329:     public function getAdded()
330:     {
331:         return $this->added;
332:     }
333: 
334:     /**
335:      * @param string $added
336:      *
337:      * @return Article
338:      */
339:     public function setAdded($added)
340:     {
341:         $this->added = $added;
342: 
343:         return $this;
344:     }
345: 
346:     /**
347:      * @return bool
348:      */
349:     public function isActive()
350:     {
351:         return $this->active;
352:     }
353: 
354:     /**
355:      * @param bool $active
356:      *
357:      * @return Article
358:      */
359:     public function setActive($active)
360:     {
361:         $this->active = $active;
362: 
363:         return $this;
364:     }
365: 
366:     /**
367:      * @return int
368:      */
369:     public function getPseudoSales()
370:     {
371:         return $this->pseudoSales;
372:     }
373: 
374:     /**
375:      * @param int $pseudoSales
376:      *
377:      * @return Article
378:      */
379:     public function setPseudoSales($pseudoSales)
380:     {
381:         $this->pseudoSales = $pseudoSales;
382: 
383:         return $this;
384:     }
385: 
386:     /**
387:      * @return bool
388:      */
389:     public function isHighlight()
390:     {
391:         return $this->highlight;
392:     }
393: 
394:     /**
395:      * @param bool $highlight
396:      *
397:      * @return Article
398:      */
399:     public function setHighlight($highlight)
400:     {
401:         $this->highlight = $highlight;
402: 
403:         return $this;
404:     }
405: 
406:     /**
407:      * @return string
408:      */
409:     public function getKeywords()
410:     {
411:         return $this->keywords;
412:     }
413: 
414:     /**
415:      * @param string $keywords
416:      *
417:      * @return Article
418:      */
419:     public function setKeywords($keywords)
420:     {
421:         $this->keywords = $keywords;
422: 
423:         return $this;
424:     }
425: 
426:     /**
427:      * @return string
428:      */
429:     public function getMetaTitle()
430:     {
431:         return $this->metaTitle;
432:     }
433: 
434:     /**
435:      * @param string $metaTitle
436:      *
437:      * @return Article
438:      */
439:     public function setMetaTitle($metaTitle)
440:     {
441:         $this->metaTitle = $metaTitle;
442: 
443:         return $this;
444:     }
445: 
446:     /**
447:      * @return string
448:      */
449:     public function getChanged()
450:     {
451:         return $this->changed;
452:     }
453: 
454:     /**
455:      * @param string $changed
456:      *
457:      * @return Article
458:      */
459:     public function setChanged($changed)
460:     {
461:         $this->changed = $changed;
462: 
463:         return $this;
464:     }
465: 
466:     /**
467:      * @return bool
468:      */
469:     public function isPriceGroupActive()
470:     {
471:         return $this->priceGroupActive;
472:     }
473: 
474:     /**
475:      * @param bool $priceGroupActive
476:      *
477:      * @return Article
478:      */
479:     public function setPriceGroupActive($priceGroupActive)
480:     {
481:         $this->priceGroupActive = $priceGroupActive;
482: 
483:         return $this;
484:     }
485: 
486:     /**
487:      * @return bool
488:      */
489:     public function isLastStock()
490:     {
491:         return $this->lastStock;
492:     }
493: 
494:     /**
495:      * @param bool $lastStock
496:      *
497:      * @return Article
498:      */
499:     public function setLastStock($lastStock)
500:     {
501:         $this->lastStock = $lastStock;
502: 
503:         return $this;
504:     }
505: 
506:     /**
507:      * @return bool
508:      */
509:     public function isCrossBundleLook()
510:     {
511:         return $this->crossBundleLook;
512:     }
513: 
514:     /**
515:      * @param bool $crossBundleLook
516:      *
517:      * @return Article
518:      */
519:     public function setCrossBundleLook($crossBundleLook)
520:     {
521:         $this->crossBundleLook = $crossBundleLook;
522: 
523:         return $this;
524:     }
525: 
526:     /**
527:      * @return bool
528:      */
529:     public function isNotification()
530:     {
531:         return $this->notification;
532:     }
533: 
534:     /**
535:      * @param bool $notification
536:      *
537:      * @return Article
538:      */
539:     public function setNotification($notification)
540:     {
541:         $this->notification = $notification;
542: 
543:         return $this;
544:     }
545: 
546:     /**
547:      * @return string
548:      */
549:     public function getTemplate()
550:     {
551:         return $this->template;
552:     }
553: 
554:     /**
555:      * @param string $template
556:      *
557:      * @return Article
558:      */
559:     public function setTemplate($template)
560:     {
561:         $this->template = $template;
562: 
563:         return $this;
564:     }
565: 
566:     /**
567:      * @return int
568:      */
569:     public function getMode()
570:     {
571:         return $this->mode;
572:     }
573: 
574:     /**
575:      * @param int $mode
576:      *
577:      * @return Article
578:      */
579:     public function setMode($mode)
580:     {
581:         $this->mode = $mode;
582: 
583:         return $this;
584:     }
585: 
586:     /**
587:      * @return string
588:      */
589:     public function getAvailableFrom()
590:     {
591:         return $this->availableFrom;
592:     }
593: 
594:     /**
595:      * @param string $availableFrom
596:      *
597:      * @return Article
598:      */
599:     public function setAvailableFrom($availableFrom)
600:     {
601:         $this->availableFrom = $availableFrom;
602: 
603:         return $this;
604:     }
605: 
606:     /**
607:      * @return string
608:      */
609:     public function getAvailableTo()
610:     {
611:         return $this->availableTo;
612:     }
613: 
614:     /**
615:      * @param string $availableTo
616:      *
617:      * @return Article
618:      */
619:     public function setAvailableTo($availableTo)
620:     {
621:         $this->availableTo = $availableTo;
622: 
623:         return $this;
624:     }
625: 
626:     /**
627:      * @return array
628:      */
629:     public function getAttributes()
630:     {
631:         return $this->attribute;
632:     }
633: 
634:     /**
635:      * @param ArticleAttribute $attributes
636:      *
637:      * @return Article
638:      */
639:     public function setAttributes($attributes)
640:     {
641:         $this->attribute = $attributes;
642: 
643:         return $this;
644:     }
645: 
646:     /**
647:      * @return mixed
648:      */
649:     public function getCategories()
650:     {
651:         return $this->categories;
652:     }
653: 
654:     /**
655:      * @param Category[] $categories
656:      *
657:      * @return Article
658:      */
659:     public function setCategories($categories)
660:     {
661:         $this->categories = $categories;
662: 
663:         return $this;
664:     }
665: }
666: 
shopware-sdk API documentation generated by ApiGen