commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
Product.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Common\BaseResource
;
12
use
Commercetools\Api\Models\Common\CreatedBy
;
13
use
Commercetools\Api\Models\Common\LastModifiedBy
;
14
use
Commercetools\Api\Models\ProductType\ProductTypeReference
;
15
use
Commercetools\Api\Models\Review\ReviewRatingStatistics
;
16
use
Commercetools\Api\Models\State\StateReference
;
17
use
Commercetools\Api\Models\TaxCategory\TaxCategoryReference
;
18
use
Commercetools\Api\Models\Warning\WarningObjectCollection
;
19
use
Commercetools\Base\DateTimeImmutableCollection
;
20
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Api\Models\Warning\WarningObjectCollection
Definition:
WarningObjectCollection.php:26
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Product\ProductCatalogData
Definition:
ProductCatalogData.php:15
Commercetools\Api\Models\Product\Product
Definition:
Product.php:24
Commercetools\Api\Models\Product\Product\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Product.php:26
Commercetools\Api\Models\Product\Product\FIELD_STATE
const FIELD_STATE
Definition:
Product.php:31
Commercetools\Api\Models\Product\Product\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Product\Product\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Product.php:25
Commercetools\Api\Models\Product\Product\FIELD_PRICE_MODE
const FIELD_PRICE_MODE
Definition:
Product.php:33
Commercetools\Api\Models\Product\Product\setState
setState(?StateReference $state)
Commercetools\Api\Models\Product\Product\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
Product.php:30
Commercetools\Api\Models\Product\Product\getVersion
getVersion()
Commercetools\Api\Models\Product\Product\setReviewRatingStatistics
setReviewRatingStatistics(?ReviewRatingStatistics $reviewRatingStatistics)
Commercetools\Api\Models\Product\Product\getMasterData
getMasterData()
Commercetools\Api\Models\Product\Product\getKey
getKey()
Commercetools\Api\Models\Product\Product\setTaxCategory
setTaxCategory(?TaxCategoryReference $taxCategory)
Commercetools\Api\Models\Product\Product\FIELD_MASTER_DATA
const FIELD_MASTER_DATA
Definition:
Product.php:29
Commercetools\Api\Models\Product\Product\getReviewRatingStatistics
getReviewRatingStatistics()
Commercetools\Api\Models\Product\Product\getProductType
getProductType()
Commercetools\Api\Models\Product\Product\FIELD_REVIEW_RATING_STATISTICS
const FIELD_REVIEW_RATING_STATISTICS
Definition:
Product.php:32
Commercetools\Api\Models\Product\Product\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Product\Product\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Product\Product\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Product\Product\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Product\Product\setProductType
setProductType(?ProductTypeReference $productType)
Commercetools\Api\Models\Product\Product\FIELD_WARNINGS
const FIELD_WARNINGS
Definition:
Product.php:34
Commercetools\Api\Models\Product\Product\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\Product\Product\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Product\Product\FIELD_KEY
const FIELD_KEY
Definition:
Product.php:27
Commercetools\Api\Models\Product\Product\FIELD_PRODUCT_TYPE
const FIELD_PRODUCT_TYPE
Definition:
Product.php:28
Commercetools\Api\Models\Product\Product\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Product\Product\setWarnings
setWarnings(?WarningObjectCollection $warnings)
Commercetools\Api\Models\Product\Product\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Product\Product\getPriceMode
getPriceMode()
Commercetools\Api\Models\Product\Product\setKey
setKey(?string $key)
Commercetools\Api\Models\Product\Product\setMasterData
setMasterData(?ProductCatalogData $masterData)
Commercetools\Api\Models\Product\Product\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Product\Product\setId
setId(?string $id)
Commercetools\Api\Models\Product\Product\setPriceMode
setPriceMode(?string $priceMode)
Commercetools\Api\Models\Product\Product\getState
getState()
Commercetools\Api\Models\Product\Product\getWarnings
getWarnings()
Commercetools\Api\Models\Product\Product\getId
getId()
Commercetools\Api\Models\ProductType\ProductTypeReference
Definition:
ProductTypeReference.php:16
Commercetools\Api\Models\Review\ReviewRatingStatistics
Definition:
ReviewRatingStatistics.php:15
Commercetools\Api\Models\State\StateReference
Definition:
StateReference.php:16
Commercetools\Api\Models\TaxCategory\TaxCategoryReference
Definition:
TaxCategoryReference.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Product
Definition:
AttributeAccessor.php:4
Generated by
1.9.1