commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductData.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\LocalizedString
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
16
interface
ProductData
extends
JsonObject
17
{
18
public
const
FIELD_NAME
=
'name'
;
19
public
const
FIELD_CATEGORIES
=
'categories'
;
20
public
const
FIELD_CATEGORY_ORDER_HINTS
=
'categoryOrderHints'
;
21
public
const
FIELD_DESCRIPTION
=
'description'
;
22
public
const
FIELD_SLUG
=
'slug'
;
23
public
const
FIELD_META_TITLE
=
'metaTitle'
;
24
public
const
FIELD_META_DESCRIPTION
=
'metaDescription'
;
25
public
const
FIELD_META_KEYWORDS
=
'metaKeywords'
;
26
public
const
FIELD_MASTER_VARIANT
=
'masterVariant'
;
27
public
const
FIELD_VARIANTS
=
'variants'
;
28
public
const
FIELD_SEARCH_KEYWORDS
=
'searchKeywords'
;
29
36
public
function
getName
();
37
44
public
function
getCategories
();
45
52
public
function
getCategoryOrderHints
();
53
60
public
function
getDescription
();
61
70
public
function
getSlug
();
71
78
public
function
getMetaTitle
();
79
86
public
function
getMetaDescription
();
87
94
public
function
getMetaKeywords
();
95
102
public
function
getMasterVariant
();
103
110
public
function
getVariants
();
111
118
public
function
getSearchKeywords
();
119
123
public
function
setName
(?
LocalizedString
$name): void;
124
128
public
function
setCategories
(?
CategoryReferenceCollection
$categories): void;
129
133
public
function
setCategoryOrderHints
(?
CategoryOrderHints
$categoryOrderHints): void;
134
138
public
function
setDescription
(?
LocalizedString
$description): void;
139
143
public
function
setSlug
(?
LocalizedString
$slug): void;
144
148
public
function
setMetaTitle
(?
LocalizedString
$metaTitle): void;
149
153
public
function
setMetaDescription
(?
LocalizedString
$metaDescription): void;
154
158
public
function
setMetaKeywords
(?
LocalizedString
$metaKeywords): void;
159
163
public
function
setMasterVariant
(?
ProductVariant
$masterVariant): void;
164
168
public
function
setVariants
(?
ProductVariantCollection
$variants): void;
169
173
public
function
setSearchKeywords
(?
SearchKeywords
$searchKeywords): void;
174
}
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\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Product\CategoryOrderHints
Definition:
CategoryOrderHints.php:14
Commercetools\Api\Models\Product\ProductData
Definition:
ProductData.php:17
Commercetools\Api\Models\Product\ProductData\setMetaDescription
setMetaDescription(?LocalizedString $metaDescription)
Commercetools\Api\Models\Product\ProductData\setCategoryOrderHints
setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints)
Commercetools\Api\Models\Product\ProductData\getSlug
getSlug()
Commercetools\Api\Models\Product\ProductData\FIELD_CATEGORY_ORDER_HINTS
const FIELD_CATEGORY_ORDER_HINTS
Definition:
ProductData.php:20
Commercetools\Api\Models\Product\ProductData\setMetaTitle
setMetaTitle(?LocalizedString $metaTitle)
Commercetools\Api\Models\Product\ProductData\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\Product\ProductData\getDescription
getDescription()
Commercetools\Api\Models\Product\ProductData\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ProductData.php:21
Commercetools\Api\Models\Product\ProductData\getVariants
getVariants()
Commercetools\Api\Models\Product\ProductData\getMetaTitle
getMetaTitle()
Commercetools\Api\Models\Product\ProductData\FIELD_META_DESCRIPTION
const FIELD_META_DESCRIPTION
Definition:
ProductData.php:24
Commercetools\Api\Models\Product\ProductData\getMetaKeywords
getMetaKeywords()
Commercetools\Api\Models\Product\ProductData\FIELD_META_TITLE
const FIELD_META_TITLE
Definition:
ProductData.php:23
Commercetools\Api\Models\Product\ProductData\getSearchKeywords
getSearchKeywords()
Commercetools\Api\Models\Product\ProductData\FIELD_CATEGORIES
const FIELD_CATEGORIES
Definition:
ProductData.php:19
Commercetools\Api\Models\Product\ProductData\setSearchKeywords
setSearchKeywords(?SearchKeywords $searchKeywords)
Commercetools\Api\Models\Product\ProductData\getCategoryOrderHints
getCategoryOrderHints()
Commercetools\Api\Models\Product\ProductData\FIELD_SEARCH_KEYWORDS
const FIELD_SEARCH_KEYWORDS
Definition:
ProductData.php:28
Commercetools\Api\Models\Product\ProductData\FIELD_SLUG
const FIELD_SLUG
Definition:
ProductData.php:22
Commercetools\Api\Models\Product\ProductData\setSlug
setSlug(?LocalizedString $slug)
Commercetools\Api\Models\Product\ProductData\FIELD_MASTER_VARIANT
const FIELD_MASTER_VARIANT
Definition:
ProductData.php:26
Commercetools\Api\Models\Product\ProductData\FIELD_VARIANTS
const FIELD_VARIANTS
Definition:
ProductData.php:27
Commercetools\Api\Models\Product\ProductData\setCategories
setCategories(?CategoryReferenceCollection $categories)
Commercetools\Api\Models\Product\ProductData\setVariants
setVariants(?ProductVariantCollection $variants)
Commercetools\Api\Models\Product\ProductData\getCategories
getCategories()
Commercetools\Api\Models\Product\ProductData\getName
getName()
Commercetools\Api\Models\Product\ProductData\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\Product\ProductData\FIELD_META_KEYWORDS
const FIELD_META_KEYWORDS
Definition:
ProductData.php:25
Commercetools\Api\Models\Product\ProductData\FIELD_NAME
const FIELD_NAME
Definition:
ProductData.php:18
Commercetools\Api\Models\Product\ProductData\setMetaKeywords
setMetaKeywords(?LocalizedString $metaKeywords)
Commercetools\Api\Models\Product\ProductData\setMasterVariant
setMasterVariant(?ProductVariant $masterVariant)
Commercetools\Api\Models\Product\ProductData\getMasterVariant
getMasterVariant()
Commercetools\Api\Models\Product\ProductData\getMetaDescription
getMetaDescription()
Commercetools\Api\Models\Product\ProductVariant
Definition:
ProductVariant.php:20
Commercetools\Api\Models\Product\SearchKeywords
Definition:
SearchKeywords.php:14
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Product
Definition:
AttributeAccessor.php:4
Generated by
1.9.1