commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Product.php
1 <?php
2 
3 declare(strict_types=1);
10 
21 use DateTimeImmutable;
22 
23 interface Product extends BaseResource
24 {
25  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
26  public const FIELD_CREATED_BY = 'createdBy';
27  public const FIELD_KEY = 'key';
28  public const FIELD_PRODUCT_TYPE = 'productType';
29  public const FIELD_MASTER_DATA = 'masterData';
30  public const FIELD_TAX_CATEGORY = 'taxCategory';
31  public const FIELD_STATE = 'state';
32  public const FIELD_REVIEW_RATING_STATISTICS = 'reviewRatingStatistics';
33  public const FIELD_PRICE_MODE = 'priceMode';
34  public const FIELD_WARNINGS = 'warnings';
35 
42  public function getId();
43 
50  public function getVersion();
51 
58  public function getCreatedAt();
59 
66  public function getLastModifiedAt();
67 
74  public function getLastModifiedBy();
75 
82  public function getCreatedBy();
83 
91  public function getKey();
92 
99  public function getProductType();
100 
107  public function getMasterData();
108 
115  public function getTaxCategory();
116 
123  public function getState();
124 
131  public function getReviewRatingStatistics();
132 
139  public function getPriceMode();
140 
148  public function getWarnings();
149 
153  public function setId(?string $id): void;
154 
158  public function setVersion(?int $version): void;
159 
163  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
164 
168  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
169 
173  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
174 
178  public function setCreatedBy(?CreatedBy $createdBy): void;
179 
183  public function setKey(?string $key): void;
184 
188  public function setProductType(?ProductTypeReference $productType): void;
189 
193  public function setMasterData(?ProductCatalogData $masterData): void;
194 
198  public function setTaxCategory(?TaxCategoryReference $taxCategory): void;
199 
203  public function setState(?StateReference $state): void;
204 
208  public function setReviewRatingStatistics(?ReviewRatingStatistics $reviewRatingStatistics): void;
209 
213  public function setPriceMode(?string $priceMode): void;
214 
218  public function setWarnings(?WarningObjectCollection $warnings): void;
219 }
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setReviewRatingStatistics(?ReviewRatingStatistics $reviewRatingStatistics)
setTaxCategory(?TaxCategoryReference $taxCategory)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setProductType(?ProductTypeReference $productType)
setWarnings(?WarningObjectCollection $warnings)
setCreatedAt(?DateTimeImmutable $createdAt)
setMasterData(?ProductCatalogData $masterData)