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 State
 14:  */
 15: class State extends Base
 16: {
 17:     /**
 18:      * @var int
 19:      */
 20:     protected $id;
 21:     /**
 22:      * @var int
 23:      */
 24:     protected $countryId;
 25:     /**
 26:      * @var int
 27:      */
 28:     protected $position;
 29:     /**
 30:      * @var string
 31:      */
 32:     protected $name;
 33:     /**
 34:      * @var string
 35:      */
 36:     protected $shortCode;
 37:     /**
 38:      * @var bool
 39:      */
 40:     protected $active;
 41: 
 42:     /**
 43:      * @return int
 44:      */
 45:     public function getId()
 46:     {
 47:         return $this->id;
 48:     }
 49: 
 50:     /**
 51:      * @param int $id
 52:      *
 53:      * @return State
 54:      */
 55:     public function setId($id)
 56:     {
 57:         $this->id = $id;
 58: 
 59:         return $this;
 60:     }
 61: 
 62:     /**
 63:      * @return int
 64:      */
 65:     public function getCountryId()
 66:     {
 67:         return $this->countryId;
 68:     }
 69: 
 70:     /**
 71:      * @param int $countryId
 72:      *
 73:      * @return State
 74:      */
 75:     public function setCountryId($countryId)
 76:     {
 77:         $this->countryId = $countryId;
 78: 
 79:         return $this;
 80:     }
 81: 
 82:     /**
 83:      * @return int
 84:      */
 85:     public function getPosition()
 86:     {
 87:         return $this->position;
 88:     }
 89: 
 90:     /**
 91:      * @param int $position
 92:      *
 93:      * @return State
 94:      */
 95:     public function setPosition($position)
 96:     {
 97:         $this->position = $position;
 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 State
114:      */
115:     public function setName($name)
116:     {
117:         $this->name = $name;
118: 
119:         return $this;
120:     }
121: 
122:     /**
123:      * @return string
124:      */
125:     public function getShortCode()
126:     {
127:         return $this->shortCode;
128:     }
129: 
130:     /**
131:      * @param string $shortCode
132:      *
133:      * @return State
134:      */
135:     public function setShortCode($shortCode)
136:     {
137:         $this->shortCode = $shortCode;
138: 
139:         return $this;
140:     }
141: 
142:     /**
143:      * @return bool
144:      */
145:     public function isActive()
146:     {
147:         return $this->active;
148:     }
149: 
150:     /**
151:      * @param bool $active
152:      *
153:      * @return State
154:      */
155:     public function setActive($active)
156:     {
157:         $this->active = $active;
158: 
159:         return $this;
160:     }
161: }
162: 
shopware-sdk API documentation generated by ApiGen