commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductProjection.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Category\CategoryReferenceCollection
;
12
use
Commercetools\Api\Models\Common\BaseResource
;
13
use
Commercetools\Api\Models\Common\LocalizedString
;
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\Base\DateTimeImmutableCollection
;
19
use
Commercetools\Base\JsonObject
;
20
use DateTimeImmutable;
21
22
interface
ProductProjection
extends
BaseResource
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
}
Commercetools\Api\Models\Category\CategoryReferenceCollection
Definition:
CategoryReferenceCollection.php:22
Commercetools\Api\Models\Product\ProductVariantCollection
Definition:
ProductVariantCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Product\CategoryOrderHints
Definition:
CategoryOrderHints.php:14
Commercetools\Api\Models\Product\ProductProjection
Definition:
ProductProjection.php:23
Commercetools\Api\Models\Product\ProductProjection\setVariants
setVariants(?ProductVariantCollection $variants)
Commercetools\Api\Models\Product\ProductProjection\FIELD_STATE
const FIELD_STATE
Definition:
ProductProjection.php:40
Commercetools\Api\Models\Product\ProductProjection\FIELD_HAS_STAGED_CHANGES
const FIELD_HAS_STAGED_CHANGES
Definition:
ProductProjection.php:35
Commercetools\Api\Models\Product\ProductProjection\getCategoryOrderHints
getCategoryOrderHints()
Commercetools\Api\Models\Product\ProductProjection\FIELD_NAME
const FIELD_NAME
Definition:
ProductProjection.php:26
Commercetools\Api\Models\Product\ProductProjection\setCategoryOrderHints
setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints)
Commercetools\Api\Models\Product\ProductProjection\getVariants
getVariants()
Commercetools\Api\Models\Product\ProductProjection\setReviewRatingStatistics
setReviewRatingStatistics(?ReviewRatingStatistics $reviewRatingStatistics)
Commercetools\Api\Models\Product\ProductProjection\FIELD_SEARCH_KEYWORDS
const FIELD_SEARCH_KEYWORDS
Definition:
ProductProjection.php:34
Commercetools\Api\Models\Product\ProductProjection\setId
setId(?string $id)
Commercetools\Api\Models\Product\ProductProjection\setMetaKeywords
setMetaKeywords(?LocalizedString $metaKeywords)
Commercetools\Api\Models\Product\ProductProjection\FIELD_PUBLISHED
const FIELD_PUBLISHED
Definition:
ProductProjection.php:36
Commercetools\Api\Models\Product\ProductProjection\getName
getName()
Commercetools\Api\Models\Product\ProductProjection\getMasterVariant
getMasterVariant()
Commercetools\Api\Models\Product\ProductProjection\getState
getState()
Commercetools\Api\Models\Product\ProductProjection\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
ProductProjection.php:39
Commercetools\Api\Models\Product\ProductProjection\setTaxCategory
setTaxCategory(?TaxCategoryReference $taxCategory)
Commercetools\Api\Models\Product\ProductProjection\setCategories
setCategories(?CategoryReferenceCollection $categories)
Commercetools\Api\Models\Product\ProductProjection\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\Product\ProductProjection\getHasStagedChanges
getHasStagedChanges()
Commercetools\Api\Models\Product\ProductProjection\getPublished
getPublished()
Commercetools\Api\Models\Product\ProductProjection\FIELD_REVIEW_RATING_STATISTICS
const FIELD_REVIEW_RATING_STATISTICS
Definition:
ProductProjection.php:41
Commercetools\Api\Models\Product\ProductProjection\setHasStagedChanges
setHasStagedChanges(?bool $hasStagedChanges)
Commercetools\Api\Models\Product\ProductProjection\getDescription
getDescription()
Commercetools\Api\Models\Product\ProductProjection\setState
setState(?StateReference $state)
Commercetools\Api\Models\Product\ProductProjection\setMetaTitle
setMetaTitle(?LocalizedString $metaTitle)
Commercetools\Api\Models\Product\ProductProjection\getMetaTitle
getMetaTitle()
Commercetools\Api\Models\Product\ProductProjection\setPriceMode
setPriceMode(?string $priceMode)
Commercetools\Api\Models\Product\ProductProjection\getReviewRatingStatistics
getReviewRatingStatistics()
Commercetools\Api\Models\Product\ProductProjection\getMetaDescription
getMetaDescription()
Commercetools\Api\Models\Product\ProductProjection\FIELD_CATEGORIES
const FIELD_CATEGORIES
Definition:
ProductProjection.php:29
Commercetools\Api\Models\Product\ProductProjection\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\Product\ProductProjection\setSearchKeywords
setSearchKeywords(?SearchKeywords $searchKeywords)
Commercetools\Api\Models\Product\ProductProjection\getKey
getKey()
Commercetools\Api\Models\Product\ProductProjection\setProductType
setProductType(?ProductTypeReference $productType)
Commercetools\Api\Models\Product\ProductProjection\getProductType
getProductType()
Commercetools\Api\Models\Product\ProductProjection\getSlug
getSlug()
Commercetools\Api\Models\Product\ProductProjection\FIELD_KEY
const FIELD_KEY
Definition:
ProductProjection.php:24
Commercetools\Api\Models\Product\ProductProjection\setMetaDescription
setMetaDescription(?LocalizedString $metaDescription)
Commercetools\Api\Models\Product\ProductProjection\FIELD_META_DESCRIPTION
const FIELD_META_DESCRIPTION
Definition:
ProductProjection.php:32
Commercetools\Api\Models\Product\ProductProjection\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Product\ProductProjection\FIELD_META_KEYWORDS
const FIELD_META_KEYWORDS
Definition:
ProductProjection.php:33
Commercetools\Api\Models\Product\ProductProjection\getSearchKeywords
getSearchKeywords()
Commercetools\Api\Models\Product\ProductProjection\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ProductProjection.php:27
Commercetools\Api\Models\Product\ProductProjection\FIELD_MASTER_VARIANT
const FIELD_MASTER_VARIANT
Definition:
ProductProjection.php:37
Commercetools\Api\Models\Product\ProductProjection\getPriceMode
getPriceMode()
Commercetools\Api\Models\Product\ProductProjection\FIELD_VARIANTS
const FIELD_VARIANTS
Definition:
ProductProjection.php:38
Commercetools\Api\Models\Product\ProductProjection\FIELD_SLUG
const FIELD_SLUG
Definition:
ProductProjection.php:28
Commercetools\Api\Models\Product\ProductProjection\FIELD_CATEGORY_ORDER_HINTS
const FIELD_CATEGORY_ORDER_HINTS
Definition:
ProductProjection.php:30
Commercetools\Api\Models\Product\ProductProjection\getVersion
getVersion()
Commercetools\Api\Models\Product\ProductProjection\setMasterVariant
setMasterVariant(?ProductVariant $masterVariant)
Commercetools\Api\Models\Product\ProductProjection\getId
getId()
Commercetools\Api\Models\Product\ProductProjection\FIELD_PRICE_MODE
const FIELD_PRICE_MODE
Definition:
ProductProjection.php:42
Commercetools\Api\Models\Product\ProductProjection\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\Product\ProductProjection\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Product\ProductProjection\getMetaKeywords
getMetaKeywords()
Commercetools\Api\Models\Product\ProductProjection\setPublished
setPublished(?bool $published)
Commercetools\Api\Models\Product\ProductProjection\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Product\ProductProjection\FIELD_META_TITLE
const FIELD_META_TITLE
Definition:
ProductProjection.php:31
Commercetools\Api\Models\Product\ProductProjection\setKey
setKey(?string $key)
Commercetools\Api\Models\Product\ProductProjection\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Product\ProductProjection\getCategories
getCategories()
Commercetools\Api\Models\Product\ProductProjection\FIELD_PRODUCT_TYPE
const FIELD_PRODUCT_TYPE
Definition:
ProductProjection.php:25
Commercetools\Api\Models\Product\ProductProjection\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Product\ProductProjection\setSlug
setSlug(?LocalizedString $slug)
Commercetools\Api\Models\Product\ProductVariant
Definition:
ProductVariant.php:20
Commercetools\Api\Models\Product\SearchKeywords
Definition:
SearchKeywords.php:14
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