commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Category
CategoryDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Category
;
10
11
use
Commercetools\Api\Models\Common\AssetDraftCollection
;
12
use
Commercetools\Api\Models\Common\LocalizedString
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
17
interface
CategoryDraft
extends
JsonObject
18
{
19
public
const
FIELD_NAME
=
'name'
;
20
public
const
FIELD_SLUG
=
'slug'
;
21
public
const
FIELD_DESCRIPTION
=
'description'
;
22
public
const
FIELD_PARENT
=
'parent'
;
23
public
const
FIELD_ORDER_HINT
=
'orderHint'
;
24
public
const
FIELD_EXTERNAL_ID
=
'externalId'
;
25
public
const
FIELD_META_TITLE
=
'metaTitle'
;
26
public
const
FIELD_META_DESCRIPTION
=
'metaDescription'
;
27
public
const
FIELD_META_KEYWORDS
=
'metaKeywords'
;
28
public
const
FIELD_CUSTOM
=
'custom'
;
29
public
const
FIELD_ASSETS
=
'assets'
;
30
public
const
FIELD_KEY
=
'key'
;
31
38
public
function
getName
();
39
48
public
function
getSlug
();
49
56
public
function
getDescription
();
57
65
public
function
getParent
();
66
74
public
function
getOrderHint
();
75
82
public
function
getExternalId
();
83
90
public
function
getMetaTitle
();
91
98
public
function
getMetaDescription
();
99
106
public
function
getMetaKeywords
();
107
114
public
function
getCustom
();
115
122
public
function
getAssets
();
123
131
public
function
getKey
();
132
136
public
function
setName
(?
LocalizedString
$name): void;
137
141
public
function
setSlug
(?
LocalizedString
$slug): void;
142
146
public
function
setDescription
(?
LocalizedString
$description): void;
147
151
public
function
setParent
(?
CategoryResourceIdentifier
$parent): void;
152
156
public
function
setOrderHint
(?
string
$orderHint): void;
157
161
public
function
setExternalId
(?
string
$externalId): void;
162
166
public
function
setMetaTitle
(?
LocalizedString
$metaTitle): void;
167
171
public
function
setMetaDescription
(?
LocalizedString
$metaDescription): void;
172
176
public
function
setMetaKeywords
(?
LocalizedString
$metaKeywords): void;
177
181
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
182
186
public
function
setAssets
(?
AssetDraftCollection
$assets): void;
187
191
public
function
setKey
(?
string
$key): void;
192
}
Commercetools\Api\Models\Common\AssetDraftCollection
Definition:
AssetDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Category\CategoryDraft
Definition:
CategoryDraft.php:18
Commercetools\Api\Models\Category\CategoryDraft\setOrderHint
setOrderHint(?string $orderHint)
Commercetools\Api\Models\Category\CategoryDraft\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\Category\CategoryDraft\setSlug
setSlug(?LocalizedString $slug)
Commercetools\Api\Models\Category\CategoryDraft\setMetaDescription
setMetaDescription(?LocalizedString $metaDescription)
Commercetools\Api\Models\Category\CategoryDraft\setExternalId
setExternalId(?string $externalId)
Commercetools\Api\Models\Category\CategoryDraft\FIELD_SLUG
const FIELD_SLUG
Definition:
CategoryDraft.php:20
Commercetools\Api\Models\Category\CategoryDraft\getDescription
getDescription()
Commercetools\Api\Models\Category\CategoryDraft\getOrderHint
getOrderHint()
Commercetools\Api\Models\Category\CategoryDraft\FIELD_META_TITLE
const FIELD_META_TITLE
Definition:
CategoryDraft.php:25
Commercetools\Api\Models\Category\CategoryDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CategoryDraft.php:28
Commercetools\Api\Models\Category\CategoryDraft\FIELD_NAME
const FIELD_NAME
Definition:
CategoryDraft.php:19
Commercetools\Api\Models\Category\CategoryDraft\getAssets
getAssets()
Commercetools\Api\Models\Category\CategoryDraft\getMetaDescription
getMetaDescription()
Commercetools\Api\Models\Category\CategoryDraft\setMetaTitle
setMetaTitle(?LocalizedString $metaTitle)
Commercetools\Api\Models\Category\CategoryDraft\FIELD_ORDER_HINT
const FIELD_ORDER_HINT
Definition:
CategoryDraft.php:23
Commercetools\Api\Models\Category\CategoryDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Category\CategoryDraft\FIELD_KEY
const FIELD_KEY
Definition:
CategoryDraft.php:30
Commercetools\Api\Models\Category\CategoryDraft\FIELD_META_KEYWORDS
const FIELD_META_KEYWORDS
Definition:
CategoryDraft.php:27
Commercetools\Api\Models\Category\CategoryDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Category\CategoryDraft\FIELD_ASSETS
const FIELD_ASSETS
Definition:
CategoryDraft.php:29
Commercetools\Api\Models\Category\CategoryDraft\getExternalId
getExternalId()
Commercetools\Api\Models\Category\CategoryDraft\setAssets
setAssets(?AssetDraftCollection $assets)
Commercetools\Api\Models\Category\CategoryDraft\setParent
setParent(?CategoryResourceIdentifier $parent)
Commercetools\Api\Models\Category\CategoryDraft\getCustom
getCustom()
Commercetools\Api\Models\Category\CategoryDraft\getParent
getParent()
Commercetools\Api\Models\Category\CategoryDraft\getMetaKeywords
getMetaKeywords()
Commercetools\Api\Models\Category\CategoryDraft\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
CategoryDraft.php:21
Commercetools\Api\Models\Category\CategoryDraft\getName
getName()
Commercetools\Api\Models\Category\CategoryDraft\getKey
getKey()
Commercetools\Api\Models\Category\CategoryDraft\FIELD_META_DESCRIPTION
const FIELD_META_DESCRIPTION
Definition:
CategoryDraft.php:26
Commercetools\Api\Models\Category\CategoryDraft\getSlug
getSlug()
Commercetools\Api\Models\Category\CategoryDraft\FIELD_PARENT
const FIELD_PARENT
Definition:
CategoryDraft.php:22
Commercetools\Api\Models\Category\CategoryDraft\setMetaKeywords
setMetaKeywords(?LocalizedString $metaKeywords)
Commercetools\Api\Models\Category\CategoryDraft\getMetaTitle
getMetaTitle()
Commercetools\Api\Models\Category\CategoryDraft\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\Category\CategoryDraft\FIELD_EXTERNAL_ID
const FIELD_EXTERNAL_ID
Definition:
CategoryDraft.php:24
Commercetools\Api\Models\Category\CategoryResourceIdentifier
Definition:
CategoryResourceIdentifier.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Category
Definition:
Category.php:9
Generated by
1.9.1