commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProductProjection.php
1 <?php
2 
3 declare(strict_types=1);
10 
20 use DateTimeImmutable;
21 
23 {
24  public const FIELD_KEY = 'key';
25  public const FIELD_PRODUCT_TYPE = 'productType';
26  public const FIELD_NAME = 'name';
27  public const FIELD_DESCRIPTION = 'description';
28  public const FIELD_SLUG = 'slug';
29  public const FIELD_CATEGORIES = 'categories';
30  public const FIELD_CATEGORY_ORDER_HINTS = 'categoryOrderHints';
31  public const FIELD_META_TITLE = 'metaTitle';
32  public const FIELD_META_DESCRIPTION = 'metaDescription';
33  public const FIELD_META_KEYWORDS = 'metaKeywords';
34  public const FIELD_SEARCH_KEYWORDS = 'searchKeywords';
35  public const FIELD_HAS_STAGED_CHANGES = 'hasStagedChanges';
36  public const FIELD_PUBLISHED = 'published';
37  public const FIELD_MASTER_VARIANT = 'masterVariant';
38  public const FIELD_VARIANTS = 'variants';
39  public const FIELD_TAX_CATEGORY = 'taxCategory';
40  public const FIELD_STATE = 'state';
41  public const FIELD_REVIEW_RATING_STATISTICS = 'reviewRatingStatistics';
42  public const FIELD_PRICE_MODE = 'priceMode';
43 
50  public function getId();
51 
58  public function getVersion();
59 
66  public function getKey();
67 
74  public function getCreatedAt();
75 
82  public function getLastModifiedAt();
83 
90  public function getProductType();
91 
98  public function getName();
99 
106  public function getDescription();
107 
117  public function getSlug();
118 
125  public function getCategories();
126 
133  public function getCategoryOrderHints();
134 
141  public function getMetaTitle();
142 
149  public function getMetaDescription();
150 
157  public function getMetaKeywords();
158 
165  public function getSearchKeywords();
166 
173  public function getHasStagedChanges();
174 
181  public function getPublished();
182 
189  public function getMasterVariant();
190 
197  public function getVariants();
198 
205  public function getTaxCategory();
206 
213  public function getState();
214 
221  public function getReviewRatingStatistics();
222 
229  public function getPriceMode();
230 
234  public function setId(?string $id): void;
235 
239  public function setVersion(?int $version): void;
240 
244  public function setKey(?string $key): void;
245 
249  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
250 
254  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
255 
259  public function setProductType(?ProductTypeReference $productType): void;
260 
264  public function setName(?LocalizedString $name): void;
265 
269  public function setDescription(?LocalizedString $description): void;
270 
274  public function setSlug(?LocalizedString $slug): void;
275 
279  public function setCategories(?CategoryReferenceCollection $categories): void;
280 
284  public function setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints): void;
285 
289  public function setMetaTitle(?LocalizedString $metaTitle): void;
290 
294  public function setMetaDescription(?LocalizedString $metaDescription): void;
295 
299  public function setMetaKeywords(?LocalizedString $metaKeywords): void;
300 
304  public function setSearchKeywords(?SearchKeywords $searchKeywords): void;
305 
309  public function setHasStagedChanges(?bool $hasStagedChanges): void;
310 
314  public function setPublished(?bool $published): void;
315 
319  public function setMasterVariant(?ProductVariant $masterVariant): void;
320 
324  public function setVariants(?ProductVariantCollection $variants): void;
325 
329  public function setTaxCategory(?TaxCategoryReference $taxCategory): void;
330 
334  public function setState(?StateReference $state): void;
335 
339  public function setReviewRatingStatistics(?ReviewRatingStatistics $reviewRatingStatistics): void;
340 
344  public function setPriceMode(?string $priceMode): void;
345 }
setVariants(?ProductVariantCollection $variants)
setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints)
setReviewRatingStatistics(?ReviewRatingStatistics $reviewRatingStatistics)
setMetaKeywords(?LocalizedString $metaKeywords)
setTaxCategory(?TaxCategoryReference $taxCategory)
setCategories(?CategoryReferenceCollection $categories)
setSearchKeywords(?SearchKeywords $searchKeywords)
setProductType(?ProductTypeReference $productType)
setMetaDescription(?LocalizedString $metaDescription)
setMasterVariant(?ProductVariant $masterVariant)
setDescription(?LocalizedString $description)
setCreatedAt(?DateTimeImmutable $createdAt)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)