commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Category\CategoryResourceIdentifierCollection
;
12
use
Commercetools\Api\Models\Common\LocalizedString
;
13
use
Commercetools\Api\Models\ProductType\ProductTypeResourceIdentifier
;
14
use
Commercetools\Api\Models\State\StateResourceIdentifier
;
15
use
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
19
interface
ProductDraft
extends
JsonObject
20
{
21
public
const
FIELD_PRODUCT_TYPE
=
'productType'
;
22
public
const
FIELD_NAME
=
'name'
;
23
public
const
FIELD_SLUG
=
'slug'
;
24
public
const
FIELD_KEY
=
'key'
;
25
public
const
FIELD_DESCRIPTION
=
'description'
;
26
public
const
FIELD_CATEGORIES
=
'categories'
;
27
public
const
FIELD_CATEGORY_ORDER_HINTS
=
'categoryOrderHints'
;
28
public
const
FIELD_META_TITLE
=
'metaTitle'
;
29
public
const
FIELD_META_DESCRIPTION
=
'metaDescription'
;
30
public
const
FIELD_META_KEYWORDS
=
'metaKeywords'
;
31
public
const
FIELD_MASTER_VARIANT
=
'masterVariant'
;
32
public
const
FIELD_VARIANTS
=
'variants'
;
33
public
const
FIELD_TAX_CATEGORY
=
'taxCategory'
;
34
public
const
FIELD_SEARCH_KEYWORDS
=
'searchKeywords'
;
35
public
const
FIELD_STATE
=
'state'
;
36
public
const
FIELD_PUBLISH
=
'publish'
;
37
public
const
FIELD_PRICE_MODE
=
'priceMode'
;
38
45
public
function
getProductType
();
46
53
public
function
getName
();
54
63
public
function
getSlug
();
64
73
public
function
getKey
();
74
81
public
function
getDescription
();
82
89
public
function
getCategories
();
90
97
public
function
getCategoryOrderHints
();
98
105
public
function
getMetaTitle
();
106
113
public
function
getMetaDescription
();
114
121
public
function
getMetaKeywords
();
122
129
public
function
getMasterVariant
();
130
137
public
function
getVariants
();
138
145
public
function
getTaxCategory
();
146
153
public
function
getSearchKeywords
();
154
161
public
function
getState
();
162
169
public
function
getPublish
();
170
177
public
function
getPriceMode
();
178
182
public
function
setProductType
(?
ProductTypeResourceIdentifier
$productType): void;
183
187
public
function
setName
(?
LocalizedString
$name): void;
188
192
public
function
setSlug
(?
LocalizedString
$slug): void;
193
197
public
function
setKey
(?
string
$key): void;
198
202
public
function
setDescription
(?
LocalizedString
$description): void;
203
207
public
function
setCategories
(?
CategoryResourceIdentifierCollection
$categories): void;
208
212
public
function
setCategoryOrderHints
(?
CategoryOrderHints
$categoryOrderHints): void;
213
217
public
function
setMetaTitle
(?
LocalizedString
$metaTitle): void;
218
222
public
function
setMetaDescription
(?
LocalizedString
$metaDescription): void;
223
227
public
function
setMetaKeywords
(?
LocalizedString
$metaKeywords): void;
228
232
public
function
setMasterVariant
(?
ProductVariantDraft
$masterVariant): void;
233
237
public
function
setVariants
(?
ProductVariantDraftCollection
$variants): void;
238
242
public
function
setTaxCategory
(?
TaxCategoryResourceIdentifier
$taxCategory): void;
243
247
public
function
setSearchKeywords
(?
SearchKeywords
$searchKeywords): void;
248
252
public
function
setState
(?
StateResourceIdentifier
$state): void;
253
257
public
function
setPublish
(?
bool
$publish): void;
258
262
public
function
setPriceMode
(?
string
$priceMode): void;
263
}
Commercetools\Api\Models\Category\CategoryResourceIdentifierCollection
Definition:
CategoryResourceIdentifierCollection.php:22
Commercetools\Api\Models\Product\ProductVariantDraftCollection
Definition:
ProductVariantDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Product\CategoryOrderHints
Definition:
CategoryOrderHints.php:14
Commercetools\Api\Models\Product\ProductDraft
Definition:
ProductDraft.php:20
Commercetools\Api\Models\Product\ProductDraft\FIELD_META_DESCRIPTION
const FIELD_META_DESCRIPTION
Definition:
ProductDraft.php:29
Commercetools\Api\Models\Product\ProductDraft\getSlug
getSlug()
Commercetools\Api\Models\Product\ProductDraft\getPublish
getPublish()
Commercetools\Api\Models\Product\ProductDraft\getKey
getKey()
Commercetools\Api\Models\Product\ProductDraft\getProductType
getProductType()
Commercetools\Api\Models\Product\ProductDraft\getName
getName()
Commercetools\Api\Models\Product\ProductDraft\FIELD_CATEGORY_ORDER_HINTS
const FIELD_CATEGORY_ORDER_HINTS
Definition:
ProductDraft.php:27
Commercetools\Api\Models\Product\ProductDraft\setPriceMode
setPriceMode(?string $priceMode)
Commercetools\Api\Models\Product\ProductDraft\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ProductDraft.php:25
Commercetools\Api\Models\Product\ProductDraft\setPublish
setPublish(?bool $publish)
Commercetools\Api\Models\Product\ProductDraft\FIELD_VARIANTS
const FIELD_VARIANTS
Definition:
ProductDraft.php:32
Commercetools\Api\Models\Product\ProductDraft\setCategoryOrderHints
setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints)
Commercetools\Api\Models\Product\ProductDraft\setMetaKeywords
setMetaKeywords(?LocalizedString $metaKeywords)
Commercetools\Api\Models\Product\ProductDraft\getCategoryOrderHints
getCategoryOrderHints()
Commercetools\Api\Models\Product\ProductDraft\FIELD_META_TITLE
const FIELD_META_TITLE
Definition:
ProductDraft.php:28
Commercetools\Api\Models\Product\ProductDraft\setVariants
setVariants(?ProductVariantDraftCollection $variants)
Commercetools\Api\Models\Product\ProductDraft\setMetaTitle
setMetaTitle(?LocalizedString $metaTitle)
Commercetools\Api\Models\Product\ProductDraft\getVariants
getVariants()
Commercetools\Api\Models\Product\ProductDraft\setCategories
setCategories(?CategoryResourceIdentifierCollection $categories)
Commercetools\Api\Models\Product\ProductDraft\FIELD_KEY
const FIELD_KEY
Definition:
ProductDraft.php:24
Commercetools\Api\Models\Product\ProductDraft\setSearchKeywords
setSearchKeywords(?SearchKeywords $searchKeywords)
Commercetools\Api\Models\Product\ProductDraft\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\Product\ProductDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Product\ProductDraft\FIELD_SEARCH_KEYWORDS
const FIELD_SEARCH_KEYWORDS
Definition:
ProductDraft.php:34
Commercetools\Api\Models\Product\ProductDraft\getMasterVariant
getMasterVariant()
Commercetools\Api\Models\Product\ProductDraft\getTaxCategory
getTaxCategory()
Commercetools\Api\Models\Product\ProductDraft\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\Product\ProductDraft\getMetaDescription
getMetaDescription()
Commercetools\Api\Models\Product\ProductDraft\FIELD_STATE
const FIELD_STATE
Definition:
ProductDraft.php:35
Commercetools\Api\Models\Product\ProductDraft\setMetaDescription
setMetaDescription(?LocalizedString $metaDescription)
Commercetools\Api\Models\Product\ProductDraft\setState
setState(?StateResourceIdentifier $state)
Commercetools\Api\Models\Product\ProductDraft\getState
getState()
Commercetools\Api\Models\Product\ProductDraft\FIELD_SLUG
const FIELD_SLUG
Definition:
ProductDraft.php:23
Commercetools\Api\Models\Product\ProductDraft\FIELD_MASTER_VARIANT
const FIELD_MASTER_VARIANT
Definition:
ProductDraft.php:31
Commercetools\Api\Models\Product\ProductDraft\getSearchKeywords
getSearchKeywords()
Commercetools\Api\Models\Product\ProductDraft\FIELD_PUBLISH
const FIELD_PUBLISH
Definition:
ProductDraft.php:36
Commercetools\Api\Models\Product\ProductDraft\setTaxCategory
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
Commercetools\Api\Models\Product\ProductDraft\getMetaKeywords
getMetaKeywords()
Commercetools\Api\Models\Product\ProductDraft\FIELD_PRODUCT_TYPE
const FIELD_PRODUCT_TYPE
Definition:
ProductDraft.php:21
Commercetools\Api\Models\Product\ProductDraft\FIELD_META_KEYWORDS
const FIELD_META_KEYWORDS
Definition:
ProductDraft.php:30
Commercetools\Api\Models\Product\ProductDraft\FIELD_NAME
const FIELD_NAME
Definition:
ProductDraft.php:22
Commercetools\Api\Models\Product\ProductDraft\getMetaTitle
getMetaTitle()
Commercetools\Api\Models\Product\ProductDraft\setMasterVariant
setMasterVariant(?ProductVariantDraft $masterVariant)
Commercetools\Api\Models\Product\ProductDraft\FIELD_CATEGORIES
const FIELD_CATEGORIES
Definition:
ProductDraft.php:26
Commercetools\Api\Models\Product\ProductDraft\setProductType
setProductType(?ProductTypeResourceIdentifier $productType)
Commercetools\Api\Models\Product\ProductDraft\getPriceMode
getPriceMode()
Commercetools\Api\Models\Product\ProductDraft\getDescription
getDescription()
Commercetools\Api\Models\Product\ProductDraft\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
ProductDraft.php:33
Commercetools\Api\Models\Product\ProductDraft\setSlug
setSlug(?LocalizedString $slug)
Commercetools\Api\Models\Product\ProductDraft\getCategories
getCategories()
Commercetools\Api\Models\Product\ProductDraft\FIELD_PRICE_MODE
const FIELD_PRICE_MODE
Definition:
ProductDraft.php:37
Commercetools\Api\Models\Product\ProductVariantDraft
Definition:
ProductVariantDraft.php:18
Commercetools\Api\Models\Product\SearchKeywords
Definition:
SearchKeywords.php:14
Commercetools\Api\Models\ProductType\ProductTypeResourceIdentifier
Definition:
ProductTypeResourceIdentifier.php:16
Commercetools\Api\Models\State\StateResourceIdentifier
Definition:
StateResourceIdentifier.php:16
Commercetools\Api\Models\TaxCategory\TaxCategoryResourceIdentifier
Definition:
TaxCategoryResourceIdentifier.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Product
Definition:
AttributeAccessor.php:4
Generated by
1.9.1