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 Shop
 14:  */
 15: class Shop extends Base
 16: {
 17:     /**
 18:      * @var int
 19:      */
 20:     protected $id;
 21:     /**
 22:      * @var int
 23:      */
 24:     protected $mainId;
 25:     /**
 26:      * @var int
 27:      */
 28:     protected $categoryId;
 29:     /**
 30:      * @var string
 31:      */
 32:     protected $name;
 33:     /**
 34:      * @var string
 35:      */
 36:     protected $title;
 37:     /**
 38:      * @var int
 39:      */
 40:     protected $position;
 41:     /**
 42:      * @var string
 43:      */
 44:     protected $host;
 45:     /**
 46:      * @var string
 47:      */
 48:     protected $basePath;
 49:     /**
 50:      * @var string
 51:      */
 52:     protected $baseUrl;
 53:     /**
 54:      * @var string
 55:      */
 56:     protected $hosts;
 57:     /**
 58:      * @var bool
 59:      */
 60:     protected $secure;
 61:     /**
 62:      * @var bool
 63:      */
 64:     protected $alwaysSecure;
 65:     /**
 66:      * @var string
 67:      */
 68:     protected $secureHost;
 69:     /**
 70:      * @var string
 71:      */
 72:     protected $secureBasePath;
 73:     /**
 74:      * @var bool
 75:      */
 76:     protected $default;
 77:     /**
 78:      * @var bool
 79:      */
 80:     protected $active;
 81:     /**
 82:      * @var bool
 83:      */
 84:     protected $customerScope;
 85:     /**
 86:      * @var Locale
 87:      */
 88:     protected $locale;
 89: 
 90:     /**
 91:      * @return int
 92:      */
 93:     public function getId()
 94:     {
 95:         return $this->id;
 96:     }
 97: 
 98:     /**
 99:      * @param int $id
100:      *
101:      * @return Shop
102:      */
103:     public function setId($id)
104:     {
105:         $this->id = $id;
106: 
107:         return $this;
108:     }
109: 
110:     /**
111:      * @return int
112:      */
113:     public function getMainId()
114:     {
115:         return $this->mainId;
116:     }
117: 
118:     /**
119:      * @param int $mainId
120:      *
121:      * @return Shop
122:      */
123:     public function setMainId($mainId)
124:     {
125:         $this->mainId = $mainId;
126: 
127:         return $this;
128:     }
129: 
130:     /**
131:      * @return int
132:      */
133:     public function getCategoryId()
134:     {
135:         return $this->categoryId;
136:     }
137: 
138:     /**
139:      * @param int $categoryId
140:      *
141:      * @return Shop
142:      */
143:     public function setCategoryId($categoryId)
144:     {
145:         $this->categoryId = $categoryId;
146: 
147:         return $this;
148:     }
149: 
150:     /**
151:      * @return string
152:      */
153:     public function getName()
154:     {
155:         return $this->name;
156:     }
157: 
158:     /**
159:      * @param string $name
160:      *
161:      * @return Shop
162:      */
163:     public function setName($name)
164:     {
165:         $this->name = $name;
166: 
167:         return $this;
168:     }
169: 
170:     /**
171:      * @return string
172:      */
173:     public function getTitle()
174:     {
175:         return $this->title;
176:     }
177: 
178:     /**
179:      * @param string $title
180:      *
181:      * @return Shop
182:      */
183:     public function setTitle($title)
184:     {
185:         $this->title = $title;
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 Shop
202:      */
203:     public function setPosition($position)
204:     {
205:         $this->position = $position;
206: 
207:         return $this;
208:     }
209: 
210:     /**
211:      * @return string
212:      */
213:     public function getHost()
214:     {
215:         return $this->host;
216:     }
217: 
218:     /**
219:      * @param string $host
220:      *
221:      * @return Shop
222:      */
223:     public function setHost($host)
224:     {
225:         $this->host = $host;
226: 
227:         return $this;
228:     }
229: 
230:     /**
231:      * @return string
232:      */
233:     public function getBasePath()
234:     {
235:         return $this->basePath;
236:     }
237: 
238:     /**
239:      * @param string $basePath
240:      *
241:      * @return Shop
242:      */
243:     public function setBasePath($basePath)
244:     {
245:         $this->basePath = $basePath;
246: 
247:         return $this;
248:     }
249: 
250:     /**
251:      * @return string
252:      */
253:     public function getBaseUrl()
254:     {
255:         return $this->baseUrl;
256:     }
257: 
258:     /**
259:      * @param string $baseUrl
260:      *
261:      * @return Shop
262:      */
263:     public function setBaseUrl($baseUrl)
264:     {
265:         $this->baseUrl = $baseUrl;
266: 
267:         return $this;
268:     }
269: 
270:     /**
271:      * @return string
272:      */
273:     public function getHosts()
274:     {
275:         return $this->hosts;
276:     }
277: 
278:     /**
279:      * @param string $hosts
280:      *
281:      * @return Shop
282:      */
283:     public function setHosts($hosts)
284:     {
285:         $this->hosts = $hosts;
286: 
287:         return $this;
288:     }
289: 
290:     /**
291:      * @return bool
292:      */
293:     public function isSecure()
294:     {
295:         return $this->secure;
296:     }
297: 
298:     /**
299:      * @param bool $secure
300:      *
301:      * @return Shop
302:      */
303:     public function setSecure($secure)
304:     {
305:         $this->secure = $secure;
306: 
307:         return $this;
308:     }
309: 
310:     /**
311:      * @return bool
312:      */
313:     public function isAlwaysSecure()
314:     {
315:         return $this->alwaysSecure;
316:     }
317: 
318:     /**
319:      * @param bool $alwaysSecure
320:      *
321:      * @return Shop
322:      */
323:     public function setAlwaysSecure($alwaysSecure)
324:     {
325:         $this->alwaysSecure = $alwaysSecure;
326: 
327:         return $this;
328:     }
329: 
330:     /**
331:      * @return string
332:      */
333:     public function getSecureHost()
334:     {
335:         return $this->secureHost;
336:     }
337: 
338:     /**
339:      * @param string $secureHost
340:      *
341:      * @return Shop
342:      */
343:     public function setSecureHost($secureHost)
344:     {
345:         $this->secureHost = $secureHost;
346: 
347:         return $this;
348:     }
349: 
350:     /**
351:      * @return string
352:      */
353:     public function getSecureBasePath()
354:     {
355:         return $this->secureBasePath;
356:     }
357: 
358:     /**
359:      * @param string $secureBasePath
360:      *
361:      * @return Shop
362:      */
363:     public function setSecureBasePath($secureBasePath)
364:     {
365:         $this->secureBasePath = $secureBasePath;
366: 
367:         return $this;
368:     }
369: 
370:     /**
371:      * @return bool
372:      */
373:     public function isDefault()
374:     {
375:         return $this->default;
376:     }
377: 
378:     /**
379:      * @param bool $default
380:      *
381:      * @return Shop
382:      */
383:     public function setDefault($default)
384:     {
385:         $this->default = $default;
386: 
387:         return $this;
388:     }
389: 
390:     /**
391:      * @return bool
392:      */
393:     public function isActive()
394:     {
395:         return $this->active;
396:     }
397: 
398:     /**
399:      * @param bool $active
400:      *
401:      * @return Shop
402:      */
403:     public function setActive($active)
404:     {
405:         $this->active = $active;
406: 
407:         return $this;
408:     }
409: }
410: 
shopware-sdk API documentation generated by ApiGen