commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProductDraftImport.php
1 <?php
2 
3 declare(strict_types=1);
10 
20 
22 {
23  public const FIELD_PRODUCT_TYPE = 'productType';
24  public const FIELD_NAME = 'name';
25  public const FIELD_SLUG = 'slug';
26  public const FIELD_DESCRIPTION = 'description';
27  public const FIELD_CATEGORIES = 'categories';
28  public const FIELD_META_TITLE = 'metaTitle';
29  public const FIELD_META_DESCRIPTION = 'metaDescription';
30  public const FIELD_META_KEYWORDS = 'metaKeywords';
31  public const FIELD_MASTER_VARIANT = 'masterVariant';
32  public const FIELD_VARIANTS = 'variants';
33  public const FIELD_TAX_CATEGORY = 'taxCategory';
34  public const FIELD_SEARCH_KEYWORDS = 'searchKeywords';
35  public const FIELD_STATE = 'state';
36  public const FIELD_PUBLISH = 'publish';
37  public const FIELD_PRICE_MODE = 'priceMode';
38 
45  public function getKey();
46 
56  public function getProductType();
57 
62  public function getName();
63 
71  public function getSlug();
72 
79  public function getDescription();
80 
88  public function getCategories();
89 
101  public function getMetaTitle();
102 
114  public function getMetaDescription();
115 
127  public function getMetaKeywords();
128 
136  public function getMasterVariant();
137 
144  public function getVariants();
145 
153  public function getTaxCategory();
154 
177  public function getSearchKeywords();
178 
186  public function getState();
187 
194  public function getPublish();
195 
202  public function getPriceMode();
203 
207  public function setKey(?string $key): void;
208 
212  public function setProductType(?ProductTypeKeyReference $productType): void;
213 
217  public function setName(?LocalizedString $name): void;
218 
222  public function setSlug(?LocalizedString $slug): void;
223 
227  public function setDescription(?LocalizedString $description): void;
228 
232  public function setCategories(?CategoryKeyReferenceCollection $categories): void;
233 
237  public function setMetaTitle(?LocalizedString $metaTitle): void;
238 
242  public function setMetaDescription(?LocalizedString $metaDescription): void;
243 
247  public function setMetaKeywords(?LocalizedString $metaKeywords): void;
248 
252  public function setMasterVariant(?ProductVariantDraftImport $masterVariant): void;
253 
257  public function setVariants(?ProductVariantDraftImportCollection $variants): void;
258 
262  public function setTaxCategory(?TaxCategoryKeyReference $taxCategory): void;
263 
267  public function setSearchKeywords(?SearchKeywords $searchKeywords): void;
268 
272  public function setState(?StateKeyReference $state): void;
273 
277  public function setPublish(?bool $publish): void;
278 
282  public function setPriceMode(?string $priceMode): void;
283 }
setCategories(?CategoryKeyReferenceCollection $categories)
setProductType(?ProductTypeKeyReference $productType)
setTaxCategory(?TaxCategoryKeyReference $taxCategory)
setMasterVariant(?ProductVariantDraftImport $masterVariant)
setMetaDescription(?LocalizedString $metaDescription)
setVariants(?ProductVariantDraftImportCollection $variants)