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 Document
 14:  */
 15: class Document extends Base
 16: {
 17:     /**
 18:      * @var int
 19:      */
 20:     protected $id;
 21:     /**
 22:      * @var string
 23:      */
 24:     protected $date;
 25:     /**
 26:      * @var int
 27:      */
 28:     protected $typeId;
 29:     /**
 30:      * @var int
 31:      */
 32:     protected $customerId;
 33:     /**
 34:      * @var int
 35:      */
 36:     protected $orderId;
 37:     /**
 38:      * @var float
 39:      */
 40:     protected $amount;
 41:     /**
 42:      * @var int
 43:      */
 44:     protected $documentId;
 45:     /**
 46:      * @var string
 47:      */
 48:     protected $hash;
 49:     /**
 50:      * @var DocumentType
 51:      */
 52:     protected $type;
 53:     /**
 54:      * @var DocumentAttribute
 55:      */
 56:     protected $attribute;
 57: 
 58:     /**
 59:      * @return int
 60:      */
 61:     public function getId()
 62:     {
 63:         return $this->id;
 64:     }
 65: 
 66:     /**
 67:      * @param int $id
 68:      *
 69:      * @return Document
 70:      */
 71:     public function setId($id)
 72:     {
 73:         $this->id = $id;
 74: 
 75:         return $this;
 76:     }
 77: 
 78:     /**
 79:      * @return string
 80:      */
 81:     public function getDate()
 82:     {
 83:         return $this->date;
 84:     }
 85: 
 86:     /**
 87:      * @param string $date
 88:      *
 89:      * @return Document
 90:      */
 91:     public function setDate($date)
 92:     {
 93:         $this->date = $date;
 94: 
 95:         return $this;
 96:     }
 97: 
 98:     /**
 99:      * @return int
100:      */
101:     public function getTypeId()
102:     {
103:         return $this->typeId;
104:     }
105: 
106:     /**
107:      * @param int $typeId
108:      *
109:      * @return Document
110:      */
111:     public function setTypeId($typeId)
112:     {
113:         $this->typeId = $typeId;
114: 
115:         return $this;
116:     }
117: 
118:     /**
119:      * @return int
120:      */
121:     public function getCustomerId()
122:     {
123:         return $this->customerId;
124:     }
125: 
126:     /**
127:      * @param int $customerId
128:      *
129:      * @return Document
130:      */
131:     public function setCustomerId($customerId)
132:     {
133:         $this->customerId = $customerId;
134: 
135:         return $this;
136:     }
137: 
138:     /**
139:      * @return int
140:      */
141:     public function getOrderId()
142:     {
143:         return $this->orderId;
144:     }
145: 
146:     /**
147:      * @param int $orderId
148:      *
149:      * @return Document
150:      */
151:     public function setOrderId($orderId)
152:     {
153:         $this->orderId = $orderId;
154: 
155:         return $this;
156:     }
157: 
158:     /**
159:      * @return float
160:      */
161:     public function getAmount()
162:     {
163:         return $this->amount;
164:     }
165: 
166:     /**
167:      * @param float $amount
168:      *
169:      * @return Document
170:      */
171:     public function setAmount($amount)
172:     {
173:         $this->amount = $amount;
174: 
175:         return $this;
176:     }
177: 
178:     /**
179:      * @return int
180:      */
181:     public function getDocumentId()
182:     {
183:         return $this->documentId;
184:     }
185: 
186:     /**
187:      * @param int $documentId
188:      *
189:      * @return Document
190:      */
191:     public function setDocumentId($documentId)
192:     {
193:         $this->documentId = $documentId;
194: 
195:         return $this;
196:     }
197: 
198:     /**
199:      * @return string
200:      */
201:     public function getHash()
202:     {
203:         return $this->hash;
204:     }
205: 
206:     /**
207:      * @param string $hash
208:      *
209:      * @return Document
210:      */
211:     public function setHash($hash)
212:     {
213:         $this->hash = $hash;
214: 
215:         return $this;
216:     }
217: 
218:     /**
219:      * @return DocumentType
220:      */
221:     public function getType()
222:     {
223:         return $this->type;
224:     }
225: 
226:     /**
227:      * @param DocumentType $type
228:      *
229:      * @return Document
230:      */
231:     public function setType($type)
232:     {
233:         $this->type = $type;
234: 
235:         return $this;
236:     }
237: 
238:     /**
239:      * @return DocumentAttribute
240:      */
241:     public function getAttribute()
242:     {
243:         return $this->attribute;
244:     }
245: 
246:     /**
247:      * @param DocumentAttribute $attribute
248:      *
249:      * @return Document
250:      */
251:     public function setAttribute($attribute)
252:     {
253:         $this->attribute = $attribute;
254: 
255:         return $this;
256:     }
257: }
258: 
shopware-sdk API documentation generated by ApiGen