commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProductData.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 
16 interface ProductData extends JsonObject
17 {
18  public const FIELD_NAME = 'name';
19  public const FIELD_CATEGORIES = 'categories';
20  public const FIELD_CATEGORY_ORDER_HINTS = 'categoryOrderHints';
21  public const FIELD_DESCRIPTION = 'description';
22  public const FIELD_SLUG = 'slug';
23  public const FIELD_META_TITLE = 'metaTitle';
24  public const FIELD_META_DESCRIPTION = 'metaDescription';
25  public const FIELD_META_KEYWORDS = 'metaKeywords';
26  public const FIELD_MASTER_VARIANT = 'masterVariant';
27  public const FIELD_VARIANTS = 'variants';
28  public const FIELD_SEARCH_KEYWORDS = 'searchKeywords';
29 
36  public function getName();
37 
44  public function getCategories();
45 
52  public function getCategoryOrderHints();
53 
60  public function getDescription();
61 
70  public function getSlug();
71 
78  public function getMetaTitle();
79 
86  public function getMetaDescription();
87 
94  public function getMetaKeywords();
95 
102  public function getMasterVariant();
103 
110  public function getVariants();
111 
118  public function getSearchKeywords();
119 
123  public function setName(?LocalizedString $name): void;
124 
128  public function setCategories(?CategoryReferenceCollection $categories): void;
129 
133  public function setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints): void;
134 
138  public function setDescription(?LocalizedString $description): void;
139 
143  public function setSlug(?LocalizedString $slug): void;
144 
148  public function setMetaTitle(?LocalizedString $metaTitle): void;
149 
153  public function setMetaDescription(?LocalizedString $metaDescription): void;
154 
158  public function setMetaKeywords(?LocalizedString $metaKeywords): void;
159 
163  public function setMasterVariant(?ProductVariant $masterVariant): void;
164 
168  public function setVariants(?ProductVariantCollection $variants): void;
169 
173  public function setSearchKeywords(?SearchKeywords $searchKeywords): void;
174 }
setMetaDescription(?LocalizedString $metaDescription)
setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints)
setMetaTitle(?LocalizedString $metaTitle)
setSearchKeywords(?SearchKeywords $searchKeywords)
setCategories(?CategoryReferenceCollection $categories)
setVariants(?ProductVariantCollection $variants)
setDescription(?LocalizedString $description)
setMetaKeywords(?LocalizedString $metaKeywords)
setMasterVariant(?ProductVariant $masterVariant)